以上是数据
以下是我的命令
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的情况呢,求解答!谢谢大家!