Hi all,
I would like to include more than one arguments in each parameter of following macro. For example, in the position of ys to have more than one ys and the parameter xs to have more than one x. Please see the code below
%macro multireg(ys=, yhats= ,xs=);
proc robustreg data=want outest=est noprint;
model &ys = &xs lnnum_lu ;
output out=want
p= &yhats;
quit;
%mend multireg;
%multireg(ys=bhared_3y , yhats= bhared_3yhatm1, xs=lupe);
I want to run a code for multiple regressions e.g
%multireg(ys=bhared_3y bhared_2y bhared_1y, yhats= bhared_3yhatm1 bhared_2yhatm1 bhared_1yhatm1, xs=lupe x1 x2);
Thank you very much in advance
Regards
George
... View more