24小时热门版块排行榜    

查看: 721  |  回复: 0

hzsh2009

铜虫 (小有名气)

[求助] 有高手能详细的解释下这段 stata code吗?谢谢!

mat mat_AregPT_varioushorizons =(.,.,.)
mat colnames  mat_AregPT_varioushorizons = Coefficient StandardError Laglength

xtreg deltadollarprice dlernew, fe
mat helpmat_coef = e(b)
mat helpmat_se = e(V)
mat mat_AregPT_varioushorizons =(mat_AregPT_varioushorizons\helpmat_coef[1,1],sqrt(helpmat_se[1,1]),0)


global help dlernew
forvalues laglength = 1/24 {
    xtreg deltadollarprice  l(0/`laglength').dlernew if c>=1 & c<3
    global help $help + l`laglength'.dlernew
    lincom $help

    mat mat_AregPT_varioushorizons =(mat_AregPT_varioushorizons\r(estimate), r(se), `laglength')
}

mat list mat_AregPT_varioushorizons
svmat mat_AregPT_varioushorizons, names(mat_AregPT_varioushorizons)
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

相关版块跳转 我要订阅楼主 hzsh2009 的主题更新
信息提示
请填处理意见