楼主: 贾伟娜
5472 6

求助:关于mixed logit [推广有奖]

  • 0关注
  • 1粉丝

硕士生

78%

还不是VIP/贵宾

-

威望
0
论坛币
708 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
541 点
帖子
69
精华
0
在线时间
263 小时
注册时间
2010-3-21
最后登录
2011-11-9

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
大家好,我第一次发帖子,请教一个关于mixed logit的问题。
     我现在做一个mixed logit的模型,自变量为性别、年龄、收入、支出、以及消费,因变量为保险种类(有四种),但是模型拟合的时候出现了问题:(见下)我不知道为什么会是这个样的?有人能解释一下吗???这个问题我弄了两个星期,依然百思不得其解 。请高人指教!
   
                                                        The MDC Procedure
                                                Mixed Multinomial Logit Estimates
                                                       Parameter Estimates
                                                                    Standard                 Approx
                               Parameter        DF     Estimate        Error    t Value    Pr > |t|
                                income            0         1E-6            .        .        .
                                 spend             0         1E-6            .        .        .
                                  age1              0         1E-6            .        .        .
                                  age2              0         1E-6            .        .        .
                                  age3              0         1E-6            .        .        .
                                  age4              0         1E-6            .        .        .
二维码

扫码加我 拉你入群

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

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

关键词:logit Mixed Log mix Multinomial Mixed logit求助

沙发
peijiamei 发表于 2010-4-7 09:36:15 |只看作者 |坛友微信交流群
把程序贴出来
我的微博:http://t.sina.com.cn/1087192374
欢迎互相加关注!

使用道具

藤椅
贾伟娜 发表于 2010-4-11 19:12:24 |只看作者 |坛友微信交流群
2# peijiamei
data bb; input age income spend joinnow costhow choice ; cards; 3 45000 1000 1 1 3 4 20000 200 1 4 2 …… ;
data newdata(keep=pid decision mode age1 age2 age3 age4 income spend joinnow costhow1 costhow2 costhow3  );
    set bb;
    age1=(age=1);
    age2=(age=2);
    age3=(age=3);
    age4=(age=4);
    costhow1=(costhow=1);
    costhow2=(costhow=2);
    costhow3=(costhow=3);
      retain pid 0;
      pid + 1;
      do i = 1 to 4;
      mode=i;
         decision = ( choice= i );
         output;
      end;
   run;
proc mdc data=newdata type=mixedlogit;
     model decision = income spend age1 age2 age3 age4 joinnow costhow1 costhow2  costhow3  /nchoice=4
            mixed=(normalparm=   income spend);/*或者是其他可能为正态分布的变量*/
id pid;
run;

使用道具

板凳
雨夜剑客 发表于 2013-1-7 18:33:22 |只看作者 |坛友微信交流群
贾伟娜 发表于 2010-4-11 19:12
2# peijiamei  
data bb; input age income spend joinnow costhow choice ; cards; 3 45000 1000 1 1 3  ...
作为一个本科生,弱弱地请教楼主一个问题,mixed logit model可以用stata实现吗?

使用道具

报纸
玛丽精英 发表于 2014-7-9 19:26:09 |只看作者 |坛友微信交流群
请问楼主解决这个问题了吗? 我也遇到同样的问题.请求解答!谢谢了

使用道具

地板
朱仁伟 发表于 2014-7-14 22:48:20 |只看作者 |坛友微信交流群
peijiamei 发表于 2010-4-7 09:36
把程序贴出来
你好,我想请问下,我现在建模也遇到楼主同样的问题,要怎么解决呢?

data newdata(keep=pid decision mode ORDER ID PROVNC GENDER AGE1 AGE2 AGE3 AGE4 DRIVAGE INCOME DEGREE WORK PURPOSE RTIME RCOST OTHERACT DELTAT DELTAC);
set vot;
AGE1=(AGE=0);
AGE2=(AGE=1);
AGE3=(AGE=2);
AGE4=(AGE=3);
retain pid 0;
pid + 1;
do i=0 to 1;
mode= i;
decision=(Y= i);
output;
end;
run;

proc mdc data=newdata;
model decision=GENDER AGE1 AGE2 AGE3 AGE4 DRIVAGE INCOME DEGREE WORK PURPOSE RTIME RCOST OTHERACT DELTAT DELTAC / type= mixedlogit nchoice= 2
mixed =(normalparm= DELTAT DELTAC);
id pid;
run;

使用道具

7
1921209223 发表于 2014-10-10 13:56:38 |只看作者 |坛友微信交流群
朱仁伟 发表于 2014-7-14 22:48
你好,我想请问下,我现在建模也遇到楼主同样的问题,要怎么解决呢?

data newdata(keep=pid decision ...
我也遇到了相同的问题,可以加球球相互关注一下吗,我的求求是:1921209223

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

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

GMT+8, 2024-4-20 11:57