全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1766 2
2019-11-29
复制代码


以上是数据

以下是我的命令

tsset id year
drop if A==.|EBXI==.|cfo==.|acc==.|invA==.|Dsale==.|DAR==.|DS_DAR==.|PPE==.
keep id year industry A EBXI cfo acc invA Dsale DAR DS_DAR PPE

egen industry_year=group(industry year),label lname(industry_year)
qui sum industry_year
global N = r(max)
  local xx "invA DS_DAR PPE"

gen DACC=.
    forvalues i=1/$N{
       qui reg acc `xx' if (industry_year==`i'), nocons
       qui predict e if e(sample),res
       qui replace DACC =e if e(sample)
       drop e

     
    }

为什么会出现insufficient observations的情况呢,求解答!谢谢大家!



二维码

扫码加我 拉你入群

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

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

全部回复
2022-1-1 22:15:35
蹲一个回复
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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