全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1195 0
2017-07-19
[img]file:///C:\Users\chenxiao\Documents\Tencent Files\1262714648\Image\C2C\IH8(6LCAU~6ZCV0E6~[RUAO.png[/img][img=0,1]file:///C:\Users\chenxiao\Documents\Tencent Files\1262714648\Image\C2C\IH8(6LCAU~6ZCV0E6~[RUAO.png[/img]program onesample,rclass
drop all
set obs 41000
drawnorm a b
*gen y=0.5*l.y+a+b
*viewsource sim_arma.ado
*sim_arma y, nobs(41000) ar(.5)
forval i = 1/41000 {
     y[1,1]=0
         y[`i'+1,1]=y[`i',1]+a[`i+1',1]+b[`i+1',1]
                }

tsset id t
xtabond el(y,40000:41000), lags(1) vce(robust)
return scalar b=_b[l.y]
end
simulate b=r(b) tf=r(t),reps(1000) saving(onesample,replace) nolegend nodots:onesample
mean b
求助:y为什么不能生成呢?

附件列表
题.png

原图尺寸 30.91 KB

题.png

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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