全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
7195 4
2007-02-09

自己作研究时写的一些程序。也许对一部分人有用。

DM 'LOG; Clear; Output;Clear;';

/* Example Program for Misspecification Testing */

PROC IMPORT OUT= WORK.SLIP

DATAFILE= "H:\AGEC6213\SLIP.xls"

DBMS=EXCEL2000 REPLACE;

GETNAMES=YES;

data slip; set slip;

t+1;

Proc Reg simple;

model slip = buysell ny ncv;

plot predicted.*residual.;

Proc Autoreg archtest dwprob;

model slip = buysell ny ncv/ reset godfrey normal chow = 148;

output out =two resid = ehat;

Data mtest;set two;

esquared = ehat * ehat;

lagesqu = lag(esquared);

lagehat = lag(ehat);

ncv2 = ncv * ncv;/* Other squared terms are not included because they are dummies */

ncvny = ncv * ny;

ncvbuy = ncv * buysell;

t+1;

Proc reg;

model esquared = buysell ny ncv;/* Static heteroskedasticity */

model ehat = t buysell ny ncv;/* Structural change using a time trend */

Proc reg;/* Joint Tests */

model ehat = lagehat t ncv2 ncvny ncvbuy buysell ny ncv;/* Joint conditional mean */

model esquared = lagesqu buysell ny ncv;/* Joint conditional variance */

run;


[此贴子已经被作者于2007-2-9 7:21:19编辑过]

二维码

扫码加我 拉你入群

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

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

全部回复
2007-2-9 08:57:00
总结的好!赞!
二维码

扫码加我 拉你入群

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

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

2007-5-14 10:14:00
原来邹检验在这里,赞
二维码

扫码加我 拉你入群

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

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

2010-10-29 13:30:53
我是一菜鸟,除了导入数据,其他的没有看懂……学习!!!
二维码

扫码加我 拉你入群

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

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

2012-4-20 10:37:07
可以解释一下么~~~呵呵  学习中~~
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群