R mlogit软件包:系统在计算上是唯一的:倒数条件编号

时间:2020-07-03 03:53:15

标签: r mlogit

我正在尝试分析作业的选择实验。我无法嵌入图像,对不起= /。

因此,CE具有3个属性(B,S和R),每个属性具有三个级别(0、1和3)。因此,总共获得了16个选择集,每个受访者必须考虑8个选择集,每个选择集具有3个选择(0、1和3)。

我需要进行多项式逻辑回归,所以我使用了'mlogit'软件包。

我的模特是这样:

library(mlogit)

Data$B = as.factor(Data$B)
Data$R = as.factor(Data$R)
Data$S = as.factor(Data$S)

test.mnl<- mlogit.data(Data, choice = "choice", shape = "long", alt.var = "option",
                          id.var="id",reflevel = "3", method="nr",heterosc=TRUE)

MNL <- mlogit(choice~B+S+R,data=test.mnl)
summary(MNL)


But I have the following error:
Error in solve.default(H, g[!fixed]) : 
  system is computationally singular: reciprocal condition number = 1.92361e-16

此错误仅与属性B和R一起出现。

我知道它不是一个健壮的模型,也不可发布,但是如果您能帮助我,我将不胜感激

0 个答案:

没有答案