WARNING: Output 'StationarityTests' was not created.
WARNING: The current ODS SELECT/EXCLUDE/OUTPUT statement was cleared because the end of a procedure
step was detected. Probable causes for this include the non-termination of an interactive
procedure (type quit; to end the procedure) and a run group with no output.
改了很久都没有改好,希望大家帮帮忙,谢谢了.
以下是程序关键部分:
……
……
……
%macro montecarlo(n); /*定义一个宏,做n次循环,每次都对一组新的数据x做平稳性检验,然后把检验结果存到adf&j中*/
%do j=1 %to &n;
……
……
……
ods output StationarityTests=adf&j;
proc arima data=test&j;
identify var=x stationarity=(adf);
run;
ods output close;
%end;
%mend montecarlo;/*宏结束*/
%montecarlo(10);
quit;
![](https://bbs-cdn.datacourse.cn/static/2017/f68.png)