全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
9926 5
2008-09-01

各位高手:

我在此学到很多知识,还是有些不懂

现在已经学会mlogit的命令,但是无法指定对照组

书上说用basecategory(#)但是程序上出现错误

例如:

mlogit q  old edu oj oj2 ft ft2,basecategory(0)

option basecategory() not allowed
r(198);

怎么改正??

在线等

急呀!!!

版主呀

高手呀


二维码

扫码加我 拉你入群

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

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

全部回复
2008-9-1 12:17:00


    Setup
        . webuse sysdsn3

    Fit multinomial logistic regression model
        . mlogit insure age male nonwhite site2 site3

    Same as above, but use 2 as the base outcome
        . mlogit insure age male nonwhite site2 site3, base(2)

    Replay, reporting relative-risk ratios
        . mlogit, rrr

二维码

扫码加我 拉你入群

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

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

2008-9-1 12:19:00

命令的查stata自带的帮助

stata10的一些选项改变了

但是基本的是不变的,所以你的查帮助

二维码

扫码加我 拉你入群

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

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

2008-9-1 22:09:00

For answering your question, I found the help resources of Stata.com in http://www.stata.com/help.cgi?mlogit.

In that webpage, you can find the correct command of basecategory such as "baseoutcome(#), base(#) or b(#)", not "basecategory(#)".

However you didn't make a categical variable before using mlogit, I think.

Because you said "... 但是无法指定对照组."

In the mgolit command of Stata,the default is to choose the most frequent outcome.

For example, if "q" of your dependent variable is composed of 5 high income groups(=1), 4 middle income group(=2) and 10 low income group(=3),the base outcome is automatically 3, that is low income group, and also you just do mlogit without base(#).

When you want to change the base outcome or group for additional analysis, you must use the command of bsae(#).

So you must check whether your dependent variable "q" is correct and then do mlogit.

I hope you enjoy Stata's wonderful world.

[此贴子已经被作者于2008-9-1 22:13:41编辑过]


eblog  金币 +2  金钱 +20  魅力 +10  经验 +10  奖励 2008-9-2 9:29:52
二维码

扫码加我 拉你入群

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

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

2008-9-2 07:00:00

如果选择缺省的话,stata会自动默认对照组为1,你的”0“似乎不能作为对照组。仅供参考。

二维码

扫码加我 拉你入群

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

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

2017-7-28 15:26:45
请问一下,您这个问题当时怎么解决的啊,谢谢啦
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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