楼主: ivylee_777
7764 24

[回归分析求助] STATA mixlogit collinear 问题 [推广有奖]

  • 23关注
  • 4粉丝

硕士生

99%

还不是VIP/贵宾

-

威望
0
论坛币
1631 个
通用积分
1.0600
学术水平
0 点
热心指数
0 点
信用等级
5 点
经验
601 点
帖子
168
精华
0
在线时间
239 小时
注册时间
2005-7-6
最后登录
2017-3-17

楼主
ivylee_777 发表于 2014-2-23 16:45:51 |AI写论文
5论坛币
大家好,请高手为我解答这个问题:我用这个命令“ mixlogit decision, group(count) id(id) rand(color size firmness sweetness  flavor  shelf  cost)”,运行后报错“Some variables are collinear - check your model specification”,可我的解释变量没有完全共线。数据及解释变量相关系数请看附件。提前谢谢帮忙的同学! Doc11.docx (27.96 KB) Book11.xlsx (94.42 KB)

原数据中忘了放入count这个变量,请重新下载这个数据 Book11.xlsx (106.37 KB)
谢谢了!

最佳答案

jjjj6666 查看完整内容

what I think is if you add all the terms, the model estimating will not converge based on how the MLE is estimated. Have you looked the original paper and see if the model is estimable with collinearity (I read the paper some time ago, but never used this model)?
关键词:Linear Stata Linea logit line color count

沙发
jjjj6666 发表于 2014-2-23 16:45:52
what I think is if you add all the terms, the model estimating will not converge based on how the MLE is estimated.  Have you looked the original paper and see if the model is estimable with collinearity (I read the paper some time ago, but never used this model)?
已有 1 人评分热心指数 收起 理由
ivylee_777 + 1 热心帮助其他会员

总评分: 热心指数 + 1   查看全部评分

藤椅
jjjj6666 发表于 2014-2-24 03:52:08
if you do

_rmcoll color size firmness sweetness  flavor  shelf  cost

does it show anything?

板凳
ivylee_777 发表于 2014-2-24 11:18:21
jjjj6666 发表于 2014-2-24 03:52
if you do

_rmcoll color size firmness sweetness  flavor  shelf  cost
Hi jjjj6666, 执行了你建议的口令后,返回的是“note: cost omitted because of collinearity”。可是我不想omit cost啊,如果不去掉任何变量,有没有解决的办法?谢谢!

报纸
ivylee_777 发表于 2014-2-24 15:01:23
继续等待高手的帮助!我用mixlogit命令分析了其他几个类似的数据,解释变量中cost是两个数值,其他是0和1虚拟变量,解释变量之间的相关系数也类似,STATA都运行了,没有出现任何报错。先谢了!

地板
jjjj6666 发表于 2014-2-25 01:11:16
if force collinearity term, is the model unidentifiable?  At least, if force it, the model estimating may not converge.

7
ivylee_777 发表于 2014-2-25 01:54:37
jjjj6666 发表于 2014-2-25 01:11
if force collinearity term, is the model unidentifiable?  At least, if force it, the model estimatin ...
Thanks for the reply! I want to have a try "force the collinearity term", but how do I do it in STATA? Could you let me know the code to fulfill it? Thank you so much!

8
jjjj6666 发表于 2014-2-25 02:04:15
the ado file doesn't allow it. You need to modify the ado file (I think stata ml optimization can have the option to allow it), which may take some works.  But if looking the likelihood function, it seems the model itself has problem under this case, is this correct?

9
ivylee_777 发表于 2014-2-25 03:48:56
jjjj6666 发表于 2014-2-25 02:04
the ado file doesn't allow it. You need to modify the ado file (I think stata ml optimization can ha ...
Sorry but I do not see problems of the model. Could you give me a little more detail? Thanks!

10
ivylee_777 发表于 2014-2-25 03:49:32
真是抱歉,我上传的数据中没有count这个变量,请重新下载数据。

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-25 15:54