全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
592 2
2020-06-24
悬赏 3 个论坛币 未解决
在论文学习中,看到以下代码有一些不太明白,用help,也搜不到相关内容,希望有好心人能指点一下我。

*** making RHS variables
forv h=0(1)`maxhor_less1' {
        gen drgdp`h'=(exp(F`h'.lnrgdppercap_new_sa)- exp(L1.lnrgdppercap_new_sa))/exp(L1.lnrgdppercap_new_sa)
        gen drgvt`h'=(exp(F`h'.ln`varname1'percap_new_sa)-exp(L1.ln`varname1'percap_new_sa))/exp(L1.lnrgdppercap_new_sa)

}

其中local maxhor_less1 = `maxhorizon' - 1  /* accounts for fact that we start at horiz = 0 */
二维码

扫码加我 拉你入群

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

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

全部回复
2020-6-24 23:42:11
似乎排版有些问题,我在重发一下:
*** making RHS variables
forv h=0(1)`maxhor_less1' {
        gen drgdp`h'=(exp(F`h'.lnrgdppercap_new_sa)- exp(L1.lnrgdppercap_new_sa))/exp(L1.lnrgdppercap_new_sa)
        gen drgvt`h'=(exp(F`h'.ln`varname1'percap_new_sa)-exp(L1.ln`varname1'percap_new_sa))/exp(L1.lnrgdppercap_new_sa)

}
二维码

扫码加我 拉你入群

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

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

2020-7-3 23:35:25
有人知道么...
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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