全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2140 1
2020-06-29
我的代码:
dropvars zg phi PHI lambda         
sort id year
xi: probit  x iv controls   i.year i.ind

predict zg,xb
gen phi=normalden(zg)
gen PHI=normal(zg)
gen lambda=phi/PHI

sort id year
xi:probit x  iv   controls  i.year i.ind
est store m1

xi:logit y x  LnSize  controls  lambda  i.year i.ind, r  cluster(id)
est store m2

报错如下:
outcome does not vary; remember:
                                  0 = negative outcome,
        all other nonmissing values = positive outcome
r(2000);


二维码

扫码加我 拉你入群

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

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

全部回复
2023-4-26 14:29:40
请问楼主知道为啥报错了吗?我也出现了这种情况
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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