全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
3047 0
2011-04-01
请教各位大侠一个问题!
我通过一系列过程把一组不稳定的时间序列数据转化成稳定的数列。
这是我的do file 里面的命令
/*Plot the series*/
gen lp=log(ppi)
label variable lp "log of ppi"

tsline lp
ac lp
pac lp
/*step 1  determinate the lags*/
dfuller lp, trend lags(4) regress
estat ic
dfuller lp, trend lags(2) regress
estat ic
dfuller lp, trend lags(1) regress
estat ic
gen dlp=lp-l.lp
label variable dlp "differcial log of ppi"
regress dlp time l.lp l.dlp l2.dlp
predict e1,r
regress dlp time l.lp l.dlp
predict e2,r
label variable e1 "Residuals with two lags"
label variable e2 "Residuals with 1 lag"

corrgram e1, lag(20)
corrgram e2, lag(20)

/*step 2   test trend(t)*/
regress dlp time l.lp l.dlp l2.dlp
test time l.lp

/*step 3   Run ADF without deterministic trend*/
dfuller lp, lags(2) regress

/*step 4   test constant (drift term)*/
regress dlp  l.lp l.dlp l2.dlp
test _cons l.lp

/*step 5   Run ADF without deterministic trend) and no drift term*/
dfuller lp, noconstant lags(2) regress



然后我确定了最后的转化方程是
Δyt = βyt-1 +β1 Δyt-1+β2 Δyt-2
123.jpg

这个是系数表


我的问题是,是不是要再通过那个系数和方程建立一列新的数列
然后那个数列才是稳定的?
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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