SAS Proc mdc:CHOICE =变量包含多余的备选方案? (退化案例)

时间:2016-12-27 07:45:02

标签: nested sas mlogit

我估计SAS中的嵌套Logit模型

•上限:两个选项1和2
•较低级别:1具有子选项1和2;和2有子选项0(退化情况)
•解释变量x1,x2,x3,x4,x5对所有替代方案都是通用的(0,1,2)

proc mdc data=c7.nlm;
   model chosen = x1 x2 x3 x4 x5 /
            type=nlogit
            choice=(mode 0 1 2)
            covest=hess;
   id cocode;
   utility u(1,) = x1 x2 x3 x4 x5;
nest level(1) = (1 2 @ 1, 0 @ 2),
        level(2) = (1 2 @ 1);
run; 

Code as per documentation here

我收到错误:错误:CHOICE =变量包含多余的备选方案

这里可能出现什么问题?

提前致谢,

1 个答案:

答案 0 :(得分:0)

你的幸运日。

使用说明34785:在PROC MDC中导致错误“CHOICE =变量包含冗余备选方案”的原因是什么?

http://support.sas.com/kb/34/785.html