全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
20570 15
2010-04-23
被drop掉的两个变量为行业虚拟变量,可以肯定这两个变量跟其他变量的相关系数不为1或者-1。用ols回归的时候没有出现这种情况。
用logit模型回归时,提示了如下内容:

note: extractive != 0 predicts failure perfectly
      extractive dropped and 1 obs not used
note: transport != 0 predicts failure perfectly
     transport dropped and 2 obs not used

这是为什么呢?~请达人解答。
二维码

扫码加我 拉你入群

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

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

全部回复
2010-4-23 17:13:56
顶了  谢谢
二维码

扫码加我 拉你入群

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

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

2010-4-23 18:01:36
楼主这是遇到了完美预测的情况。就是说因变量在您的两个行业虚拟变量不同取值上的取值是相同的,或者说,因变量在两个虚拟变量上不同取值之间没有变化。Stata在遇到这种observation predicted perfectly的情形时,会自动把相应的相应自变量以及案例删除。
二维码

扫码加我 拉你入群

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

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

2012-4-12 20:30:25
请问怎么写命令让stata不把这些observation删除呢?
在sas里面都是不会删除的
二维码

扫码加我 拉你入群

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

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

2012-8-6 17:54:59
楼主你解决了吗?同问。。。
二维码

扫码加我 拉你入群

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

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

2012-8-6 18:01:48
以下是我在一个国外网站上找到的,对我很有用,但是对你不知道有没有用
“Fixed effects regression uses only information from changes within
an individual (firm, country, or whatever your unit may be), it
throws away all information that could be obtained from comparing
individuals. So, a fixed effects regression can do nothing with an
individual that doesn't change over time, and such an individual
is removed. Apparently, your data mainly consists of individuals
who do not change over time (as 2054 of your 2200 individuals where
dropped). Which means there is only a very small sample left. I
would check whether this is correct, e.g. make sure that your
dependent variable is coded 0, 1 and not 1, 2. If it is true that
there is very little variation in outcome within individuals then
your problem is just not suitable for being analyzed with fixed
effects regression, and you can move on to random effects regression. ”
所以改用random effect或者recheck这个变量看能不能改进,如果不能就删掉。。。
我决定用random effect来做做看

二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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