全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
5859 6
2010-03-31
大家好,我第一次发帖子,请教一个关于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            .        .        .
二维码

扫码加我 拉你入群

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

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

全部回复
2010-4-7 09:36:15
把程序贴出来
二维码

扫码加我 拉你入群

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

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

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;
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群