请选择 进入手机版 | 继续访问电脑版
楼主: dfo16
6332 7

求助_用sas 建立mixed logit模型 [推广有奖]

  • 0关注
  • 0粉丝

高中生

0%

还不是VIP/贵宾

-

威望
0
论坛币
249 个
通用积分
0.5437
学术水平
11 点
热心指数
14 点
信用等级
6 点
经验
611 点
帖子
13
精华
0
在线时间
8 小时
注册时间
2007-2-8
最后登录
2017-8-18

dfo16 发表于 2007-5-13 01:00:00 |显示全部楼层 |坛友微信交流群

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

请问有谁知道,用sas 里的mdc 命令,建mixed logit模型时,有关哑变量如何进行设置?如何用arrry建立哑变量的分组数据?如何对每一个选择枝分别建立相应的概率估计的模型?恳请高人指点,万分感谢!

我的邮箱:qiandf006@hotmail.com

QQ:441573360

二维码

扫码加我 拉你入群

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

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

关键词:logit模型 Mixed logit Log mix 模型 SAS logit Mixed

回帖推荐

zzheng722 发表于3楼  查看完整内容

Use proc GLIMMIX, this is a new procedure in SAS version 9.13, if you don't have 9.13, you can download this procedure and its user guide from support.sas.com and search for 'GLIMMIX'. The syntax is very similar to proc MIXED, or proc GLM, but the graphs are much better. the link for Download: http://www.sas.com/apps/demosdownloads/sasstatglimmix_PROD__sysdep.jsp?packageID=000353&jmpflag=N [此 ...

sonicking 发表于4楼  查看完整内容

*This is the data: data origdata;input ttime1 ttime2 ttime3 choice @@;datalines;16.481 16.196 23.89 2 15.123 11.373 14.182 219.469 8.822 20.819 2 18.847 15.649 21.28 212.578 10.671 18.335 2 11.513 20.582 27.838 1 ...; RUN; *This is how you create the array dataset. data newdata(keep=pid decision mode ttime);set origdata;array tvec{3} ttime1 - ttime3;retain pid 0;pid + 1;do i = 1 to 3;mode = i ...

本帖被以下文库推荐

doutong 发表于 2007-5-15 13:18:00 |显示全部楼层 |坛友微信交流群
sas中的帮助文件中有,你可以看一下,比较复杂,一般由于时序的多,

使用道具

zzheng722 发表于 2007-5-15 23:18:00 |显示全部楼层 |坛友微信交流群

Use proc GLIMMIX, this is a new procedure in SAS version 9.13, if you don't have 9.13, you can download this procedure and its user guide from support.sas.com and search for 'GLIMMIX'. The syntax is very similar to proc MIXED, or proc GLM, but the graphs are much better.

the link for Download:

http://www.sas.com/apps/demosdownloads/sasstatglimmix_PROD__sysdep.jsp?packageID=000353&jmpflag=N


[此贴子已经被作者于2007-5-16 1:52:00编辑过]

已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 10 精彩帖子

总评分: 经验 + 3  论坛币 + 10   查看全部评分

使用道具

sonicking 发表于 2007-6-21 02:50:00 |显示全部楼层 |坛友微信交流群

*This is the data:

data origdata;
input ttime1 ttime2 ttime3 choice @@;
datalines;
16.481 16.196 23.89 2 15.123 11.373 14.182 2
19.469 8.822 20.819 2 18.847 15.649 21.28 2
12.578 10.671 18.335 2 11.513 20.582 27.838 1

...;

RUN;

*This is how you create the array dataset.

data newdata(keep=pid decision mode ttime);
set origdata;
array tvec{3} ttime1 - ttime3;
retain pid 0;
pid + 1;
do i = 1 to 3;
mode = i;
ttime = tvec{i};
decision = ( choice = i );
output;
end;
run;

*This is PROC MDC for mixed logit.

*You are saying the coefficient is normally distributed. You can also use UNIFORMPARM= or LOGNORMALPARM= as alternatives.

proc mdc data=one type=mixedlogit;
model decision = ttime / nchoice=3
mixed=(normalparm=ttime);
id pid;
run;

GOOD LUCK !!!

已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 10 精彩帖子

总评分: 经验 + 3  论坛币 + 10   查看全部评分

使用道具

dfo16 发表于 2007-6-27 04:07:00 |显示全部楼层 |坛友微信交流群
非常感谢各位解答,我想问一下,对mixed logit 结果的解释,是否可以像一般logit那样,用odds ratio 来说明以自变量每变化一单位,对因变量的影响呢?

使用道具

ease_wwj 发表于 2009-11-7 22:28:17 |显示全部楼层 |坛友微信交流群
请问下,我也在别处看到了类似的做mixed logit的程序,请问这个程序和蒙特卡洛,halton抽样有什么联系吗?
还有他和clogit模型处理数据的方法一样吗?我的问题可能比较肤浅,但是时间紧迫,还请各位懂行的指点一下!

使用道具

1921209223 发表于 2013-12-9 19:25:54 |显示全部楼层 |坛友微信交流群
你好,可以加qq交流一下吗?我也最近在学mixed logit模型。我的QQ:1921209223

使用道具

chicheng_ 发表于 2017-2-26 18:53:09 |显示全部楼层 |坛友微信交流群
1921209223 发表于 2013-12-9 19:25
你好,可以加qq交流一下吗?我也最近在学mixed logit模型。我的QQ:1921209223
能指导一下吗

使用道具

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

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

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

GMT+8, 2024-3-28 19:50