全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2520 0
2009-07-10
I am trying to estimate a mixed logit model to understand taste variation among the people. In my sample, there are 5000 people as decision makers and each of them make repeated choices ranging from 1 to 300 times. So I end up having 160000 observations.

I tried to use PROC MDC first (code listed below), then this model takes 160000 observation at one time and I can't specify individual person as cluster.  
****************************************************

  proc mdc data=gdp.matlab_model_0610 type=mixedlogit;
      model response =
ini_dly_beta_trun
dly_sav_min2
freq
distance
rev
hub
mj_index
prm_airlines
marketfare
seat
/
               nchoice=2
               mixed=(normalparm=ini_dly_beta_trun  dly_sav_min2);
      id id;
   run;
**************************************

Then I tried PROC GLIMMIX, then it can't converge. Damn it....
******************************
proc glimmix INITGLM data=gdp.y7;
class cluster;
model response  =
ini_dly_beta_trun
dly_sav_min2
freq
distance
rev
hub
mj_index
prm_airlines
marketfare
seat  /   
dist=binary     link=logit
solution ;
random ini_dly_beta_trun
dly_sav_min2
/subject=cluster ;
;
run;
*******************************************
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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