简体   繁体   English

如何在SAS中从proc arima自定义统计结果

[英]How to customize the statistical result from proc arima in SAS

I have a time series data set, I want to customize the output, which means I only want some statistical values from specific result in the result window. 我有一个时间序列数据集,我想自定义输出,这意味着我只想要结果窗口中特定结果的一些统计值。

What I want to get is just to get the values of 'Zero Mean' from the table call Augmented Dickey-Fuller Unit Root Tests. 我要获取的只是从表调用增强Dickey-Fuller单位根测试中获取“零均值”的值。 And remove all the other types in this table. 并删除此表中的所有其他类型。

The code is below: 代码如下:

DATA ts;
Process='II Trend';
DO nsam=1 TO 1000;
SEED=1564646+nsam;
a0=2;
a2=0.8;
DO i=1 TO 200;
error=RANNOR(SEED);
y= a0 + i*a2 + error;
IF i>100 THEN OUTPUT;
END;
END;
RUN;

PROC ARIMA DATA=ts;
IDENTIFY VAR=y 
STATIONARITY=(ADF=(3));
RUN;

Then you're best bet is to capture the tables and print them out, assuming there isn't an option to control them. 然后,最好的选择是捕获表并打印出来,前提是没有控制它们的选项。 I'm assuming you've read the docs to that effect: 我假设您已经阅读了有关此内容的文档:

ods listing close;
ods table StationarityTests=zero_mean(where=(Type="Zero Mean"));
PROC ARIMA DATA=ts;
IDENTIFY VAR=y 
STATIONARITY=(ADF=(3));
RUN;quit;
ods listing;
proc print data=Zero_Mean noobs label;
run;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM