全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1229 0
2012-06-09
悬赏 4 个论坛币 未解决
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)

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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