全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2086 3
2021-06-04
         egen sic_year = group(粗分行业代码num year), label lname(sic_year)
         g 投资效率=.
         forvalues i = 1/218{
           qui reg 后一期新增投资额占均值资产比率 当期新增投资额占均值资产比率  Q 现金持有量t listyears 资产规模t 资产负债率 个股年收益率 if sic_year==`i', nocons
           qui predict e if e(sample), res
           qui replace 投资效率 = e if e(sample)
           drop e
         }
         
         

二维码

扫码加我 拉你入群

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

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

全部回复
2021-6-4 20:38:16
请贴出报错的原因
二维码

扫码加我 拉你入群

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

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

2021-6-5 23:06:50
wdlbcj 发表于 2021-6-4 20:38
请贴出报错的原因
[P]     error . . . . . . . . . . . . . . . . . . . . . . . . Return code 2000
        no observations
        You have requested some statistical calculation and there are
        no observations on which to perform it.  Perhaps you specified
        if or in and inadvertently filtered all the data.
二维码

扫码加我 拉你入群

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

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

2021-6-5 23:07:00
[P]     error . . . . . . . . . . . . . . . . . . . . . . . . Return code 2000
        no observations
        You have requested some statistical calculation and there are
        no observations on which to perform it.  Perhaps you specified
        if or in and inadvertently filtered all the data.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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