请教各位大神,我希望对数据进行滚动回归,然后输出所有回归系数,但是每次都只能输出一组系数,求大神解答!程序如下:
%macro rollreg(data= );
%do stop=251 %to 1000;
%let start=%eval(&stop-250);
data temp;
set &data;
where &start<=flag<&stop;
run;
ods output ParameterEstimates=para
ods listing close; ods html close;ods graphics off;
proc reg data= temp;
model return=x1 x2 x3 x4 x5;
by stkcd;
run;quit;
%end;
%mend;
%rolling(data=a)