全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 EViews专版
2677 4
2014-01-19
Attached is code from Eviews 8.0 Example Files. Is there anybody who can explain evar, cov, ename? Thanks------------------------------------------------------------------------------
Cubic spline smoothing

The following program illustrates the use of the state-space object as a filtering/smoothing routine without estimating any parameters.

'cubic spline smooothing using sspace
'revised 3/7/2007

'change path to program path
%path = @runpath
cd %path

' load workfile
load nber
series y = m03054

smpl @first 42:06

'set smoothing parameter (signal-to-noise ratio)
!q = 0.005

'setup sspace
sspace ss1
ss1.append @signal y = sv1 + [var=1.0]
ss1.append @state sv1 = sv1(-1) + sv2(-1) + [ename=u1]
ss1.append @state sv2 = sv2(-1) + [ename=u2]
'c(1)*c(1) is the smoothing parameter (signal-to-noise ratio)
'ss1.append @evar cov(u1,u1)=c(1)*c(1)/3
'ss1.append @evar cov(u1,u2)=0.5*c(1)*c(1)
'ss1.append @evar cov(u2,u2)=c(1)*c(1)
ss1.append @evar cov(u1,u1)=!q/3
ss1.append @evar cov(u1,u2)=0.5*!q
ss1.append @evar cov(u2,u2)=!q

'parse (no parameters to estimate)
ss1.ml(d,m=100,c=1e-9)

'get smoothed estimate
ss1.makesignals(t=smooth) ys1

'get HP filtered series
!lambda = 14400
y.hpf(!lambda) ys2

'plot
graph graph1.line y ys1 ys2
graph1.setelem(1) legend(Actual)
graph1.setelem(2) legend(Cubic spline smoothing (q = !q))
graph1.setelem(3) legend(Hodrick-Prescott filter (lambda = !lambda))
graph1.legend position(.5,0) -inbox
graph1.options size(6,2)
show graph1


二维码

扫码加我 拉你入群

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

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

全部回复
2014-1-19 10:04:52
这几个关键词用于状态空间模型的干扰设定,ename先对干扰项进行命名,evar 和 cov 设定干扰的方差矩阵
二维码

扫码加我 拉你入群

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

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

2014-1-19 11:12:42
提示: 作者被禁止或删除 内容自动屏蔽
二维码

扫码加我 拉你入群

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

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

2014-5-10 12:31:06
您好,请问在eviews中怎么实现缺失数据的插补呢?
由于统计局公布的工业增加值增速每年的1月份数据都没有?
麻烦您了,跪谢~
qq邮箱:384757824@qq.com
二维码

扫码加我 拉你入群

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

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

2014-5-10 12:32:57
请问怎么在eviews中对缺失数据进行插补啊,跪谢!384757824@qq.com
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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