全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
6171 10
2010-04-21
sas文件中存放了50支股票10天的数据,
想要用GJR-GARCH模型对三因子模型RIF=a+bRMF+cSMB+dHML进行估计以求出每支股票的a,b,c,d
网上看到这样一段程序

/* Estimate GJR-GARCH Model */
proc model data = gjrgarch ;
parms arch0 .1 arch1 .2 garch1 .75 phi .1;
/* mean model */
y = intercept ;
/* variance model */
if zlag(resid.y) > 0 then
h.y = arch0 + arch1*xlag(resid.y**2,mse.y) + garch1*xlag(h.y,mse.y) ;
else
h.y = arch0 + arch1*xlag(resid.y**2,mse.y) + garch1*xlag(h.y,mse.y) +
phi*xlag(resid.y**2,mse.y) ;
/* fit the model */
fit y / method = marquardt fiml ;
run ; quit;





不太明白各参数的意思,不知道哪位高手能把程序改成能实现我说的功能的,谢谢
二维码

扫码加我 拉你入群

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

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

全部回复
2010-4-21 21:28:32
来顶一顶,做论文比较着急,又是SAS初学
二维码

扫码加我 拉你入群

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

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

2010-4-22 10:38:30
自己再顶一下
二维码

扫码加我 拉你入群

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

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

2012-11-8 12:35:25
我是來求問zlag和xlag分別是什麽意思的?lag為滯後我知道。求解釋
二维码

扫码加我 拉你入群

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

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

2014-3-29 21:52:32
The XLAG function returns the lag of the first argument if it is nonmissing. If the lag of the first argument is missing then the second argument is returned. The XLAG function makes it easy to specify the lag initialization for a GARCH process.
二维码

扫码加我 拉你入群

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

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

2014-4-11 19:54:43
萍踪浪迹century 发表于 2014-3-29 21:52
The XLAG function returns the lag of the first argument if it is nonmissing. If the lag of the firs ...
感觉您挺懂的样子,能否请教一个问题啊?我用这段程序估计GJR-GARCH模型,参数初始值设定有问题,所以总是出错,您知道parms句中的初始值是怎么设吗?谢谢啊!
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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