楼主: xjp876
5000 2

在SAS中如何做单位根和格兰杰检验? [推广有奖]

  • 0关注
  • 0粉丝

本科生

45%

还不是VIP/贵宾

-

威望
0
论坛币
1202 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
2141 点
帖子
82
精华
0
在线时间
109 小时
注册时间
2006-10-21
最后登录
2017-6-8

楼主
xjp876 发表于 2007-5-25 16:44:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

由于学SAS不久,对这不了解,刚碰到单位根和格兰杰检验这个问题,希望有人给指点下,

谢谢!!!

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:格兰杰检验 格兰杰 检验 SAS 单位 格兰杰

回帖推荐

bakoll 发表于3楼  查看完整内容

单位根检验 SAS支持的单位根检验方法包括DF、ADF、PP、KPSS和RW(检验带漂移项的随机游走)。ADF在应用中最为常见,其SAS程序可如下编写: proc arima data=one; identify var=y1 stationarity=(adf=(3)); run; adf=(3)表示滞后阶为3,这可以根据系数显著性的t检验来确定。 SAS给出的结果非常多,因此,如果只想保留ADF检验的内容,则可以对输出结果进行控制。参考程序如下: ods listing select ; 'identification 1'.'Au ...

本帖被以下文库推荐

沙发
ermutuxia 发表于 2015-1-19 11:57:27
%dftest(poi,x,outstat=result, ar=2 trend=1 dlag=2)

藤椅
bakoll 发表于 2015-6-1 22:08:55
单位根检验
SAS支持的单位根检验方法包括DF、ADF、PP、KPSS和RW(检验带漂移项的随机游走)。ADF在应用中最为常见,其SAS程序可如下编写:
proc arima data=one;
identify var=y1 stationarity=(adf=(3));
run;
adf=(3)表示滞后阶为3,这可以根据系数显著性的t检验来确定。
SAS给出的结果非常多,因此,如果只想保留ADF检验的内容,则可以对输出结果进行控制。参考程序如下:
ods listing select ;
'identification 1'.'Augmented Dickey-Fuller Unit Root Tests';
proc arima data=one;
identify var=y1 stationarity=(adf=(3));
run;
quit;

格兰杰因果检验
The VARMAX Procedure

CAUSAL Statement
CAUSAL GROUP1=(variables) GROUP2=(variables) ;
A CAUSAL statement prints the Granger causality test by fitting the VAR([img=8,10][/img]) model by using all variables defined in GROUP1 and GROUP2. Any number of CAUSAL statements can be specified. The CAUSAL statement proceeds with the MODEL statement and uses the variables and the autoregressive order, [img=8,10][/img], specified in the MODEL statement. Variables in the GROUP1= and GROUP2= options should be defined in the MODEL statement. If the P=0 option is specified in the MODEL statement, the CAUSAL statement is not applicable.
The null hypothesis of the Granger causality test is that GROUP1 is influenced only by itself, and not by GROUP2. If the hypothesis test fails to reject the null, then the variables listed in GROUP1 might be considered as independent variables.
See the section VAR and VARX Modeling for details.
The following is an example of the CAUSAL statement. You specify the CAUSAL statement with the GROUP1= and GROUP2= options.
   proc varmax data=one;      model y1-y3 = x1 / p=1;      
causal group1=(x1) group2=(y1-y3);      
causal group1=(y2) group2=(y1 y3);   
run;

stay hungry stay foolish

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-9 07:25