i have dataset as following
now i have a question about usin IML in proc sql as the code below
in the code, RollGibbs is the code using IML dsIn is the data read
i can not understand why do this procedure?
please help me~plz
data zachary;
input id x;
cards;
1 4
1 2
1 3
2 3
2 4
2 5
2 4
3 5
3 8
;
%macro zachary(n);
%do i=1 %to &n;
proc sql noprint;
create table set&i as
select id,%RollGibbs(dsIn); as mean_x
from zachary
where id=&i
group by id;
quit;
%end;
%mend;
%zachary(3);