楼主: doudoulongq3
16688 14

[其他] stata里面用logit模型回归,系统自动把我的变量drop掉了 [推广有奖]

  • 0关注
  • 1粉丝

VIP

博士生

41%

还不是VIP/贵宾

-

威望
0
论坛币
785 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
1671 点
帖子
223
精华
0
在线时间
7 小时
注册时间
2005-11-17
最后登录
2017-6-20

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
被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

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

扫码加我 拉你入群

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

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

关键词:logit模型 Stata logit tata drop

沙发
tianjinwei 发表于 2010-4-23 17:13:56 |只看作者 |坛友微信交流群
顶了  谢谢

使用道具

藤椅
macrouser 发表于 2010-4-23 18:01:36 |只看作者 |坛友微信交流群
楼主这是遇到了完美预测的情况。就是说因变量在您的两个行业虚拟变量不同取值上的取值是相同的,或者说,因变量在两个虚拟变量上不同取值之间没有变化。Stata在遇到这种observation predicted perfectly的情形时,会自动把相应的相应自变量以及案例删除。

使用道具

板凳
loveng 发表于 2012-4-12 20:30:25 |只看作者 |坛友微信交流群
请问怎么写命令让stata不把这些observation删除呢?
在sas里面都是不会删除的

使用道具

报纸
ygpz1989 发表于 2012-8-6 17:54:59 |只看作者 |坛友微信交流群
楼主你解决了吗?同问。。。

使用道具

地板
ygpz1989 发表于 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来做做看

使用道具

7
sewind_tj 发表于 2012-8-6 21:13:17 |只看作者 |坛友微信交流群
loveng 发表于 2012-4-12 20:30
请问怎么写命令让stata不把这些observation删除呢?
在sas里面都是不会删除的
可以help logit,查看命令选项,可以保留drop掉的变量。
善待你一生!
让网络基于真人的故事!

使用道具

8
jxapp_29297 发表于 2017-1-3 18:03:33 |只看作者 |坛友微信交流群
我也碰到了,不会

使用道具

9
zdx1022 发表于 2017-7-23 10:57:59 |只看作者 |坛友微信交流群
asis                        retain perfect predictor variables
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
一头肥咸鱼 + 1 + 1 + 1 精彩帖子

总评分: 学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

使用道具

10
伊如影风 发表于 2017-12-17 16:10:18 |只看作者 |坛友微信交流群
该问题最终怎么解决呢

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-25 17:48