Hi All, I came across the following macro function (shortened), but don't know what it should be called or what I should look for to understand more of it. %macro CIpoisson(cl, x, N, base, rate, ll,lu);
if (&x) < 0 then
do;
&rate = .;
&ll = .;
&lu = .;
end;
else if not(0 < (&cl) < 1) then
do;
&rate = (&base)*(&x)/(&N);
&ll = .;
&lu = .;
end;
else do;
&xx = ...;
end;
%mend; And it works like data test;
input obs denominator;
datalines;
-1 100
46 7400
3210 762787
14 400
;
run;
data tempb;
set test;
%cipoiss(0.95,obs,denominator,1000, rate,ll,lu);
run; It looks like all the variables serve as data holders or reference variables. Are there any reference books that introduce such macro programmings?
... View more