为什么选择模型会忽略分类变量的结果?

问题描述

我正在对小组成员进行各种购买的数据运行选择模型。我正在评估购买某种产品的发生率,其中产品具有价格(连续变量)和属性(分类变量)。

我想看看价格和属性如何影响发生率。不幸的是,我一直得到这个结果,其中所有属性都被省略,只有价格产生一个系数(cmmixlogit 是 Stata 中可用的选择函数)。所以我的问题是:为什么省略了属性?

cmmixlogit choice i.bottle_or_can i.light_or_regular i.category_type i.size price promotionactivity

note: 7.lightfin omitted because of collinearity
note: 7.categnewfin omitted because of collinearity
note: 7.ozsizefin omitted because of collinearity
note: 1.bottlefin omitted because of collinearity
note: 7.bottlefin omitted because of collinearity
note: 1.lightfin omitted because of collinearity
note: 2.categnewfin omitted because of collinearity
note: 3.categnewfin omitted because of collinearity
note: 4.categnewfin omitted because of collinearity
note: 5.categnewfin omitted because of collinearity
note: 2.ozsizefin omitted because of collinearity
note: 3.ozsizefin omitted because of collinearity
note: 4.ozsizefin omitted because of collinearity
note: 5.ozsizefin omitted because of collinearity

Fitting fixed parameter model:

Fitting full model:

Iteration 0:   log likelihood = -5405.0639  
Iteration 1:   log likelihood = -5405.0639  

Mixed logit choice model                       Number of obs      =    393,228
Case ID variable: newid                        Number of cases    =     14,564

Alternatives variable: assortchoice            Alts per case: min =         27
                                                              avg =       27.0
                                                              max =         27

Integration points:              0                Wald chi2(2)    =    6449.21
Log likelihood =        -5405.0639                Prob > chi2     =     0.0000

-------------------------------------------------------------------------------
       choice |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------+----------------------------------------------------------------
assortchoice  |
    bottlefin |
           1  |          0  (omitted)
           7  |          0  (omitted)
              |
     lightfin |
           1  |          0  (omitted)
           7  |          0  (omitted)
              |
  categnewfin |
           2  |          0  (omitted)
           3  |          0  (omitted)
           4  |          0  (omitted)
           5  |          0  (omitted)
           7  |          0  (omitted)
              |
    ozsizefin |
           2  |          0  (omitted)
           3  |          0  (omitted)
           4  |          0  (omitted)
           5  |          0  (omitted)
           7  |          0  (omitted)
              |
finaldollunit |  -2.801092   .0348798   -80.31   0.000    -2.869455   -2.732729
    finalprfd |   7.079639   451.1571     0.02   0.987     -877.172    891.3312
--------------+----------------------------------------------------------------
1             |
        _cons |  -50.89198      .6643   -76.61   0.000    -52.19398   -49.58998
--------------+----------------------------------------------------------------
2             |
        _cons |  -34.86058   .4456098   -78.23   0.000    -35.73396    -33.9872
--------------+----------------------------------------------------------------
3             |
        _cons |  -9.583438   .1948851   -49.17   0.000    -9.965406   -9.201471
--------------+----------------------------------------------------------------
4             |
        _cons |  -53.07984   .6622894   -80.15   0.000    -54.37791   -51.78178
--------------+----------------------------------------------------------------
5             |
        _cons |  -36.48366   .5232283   -69.73   0.000    -37.50917   -35.45816
--------------+----------------------------------------------------------------

这里是数据结构:

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)