mlogit貌似不能做fixed effects有个模型是以household 为固定效应的,就是每个家庭有几个观测值,
如果是在xtregress里(线性概率模型), 就直接用option:
,fe i(hhid) 了
不知道有没有mlogit的增强版,就是也能对panel data带fixed effects的 程序。
找到一个做mixed effect的:xtmelogit。但是我只需要fixed effect,xtmelogit要求必须有random effects。
网上还找到一个资源,完全符合要求的即femlogit depvar ..., group(hhid1) baseoutcome(#)
http://fmwww.bc.edu/repec/dsug2011/desug11_pforr.pdf
但是只有介绍,没有下载,ssc install上找不到,ideas.RePEc.org也没。
另外,还有个问题,就是如果mlogit ..., rrr 以后,如何用outreg2 输出rrr到excel里?
因为解释logit用rrr,即relative-risk ratio compared to base outcome比较方便。这个知道了,之前没好好读help和搜网:
是用outreg2的option:eform
介绍:
http://fmwww.bc.edu/repec/bocode/o/outreg2.html
eform specifies coefficients to be reported. This corresponds to or option for logit, clogit, and glogit estimation, irr for poisson estimation, rrr for mlogit, hr for cox and stcox hazard models, and eform for xtgee. The default form of stcox is the hazard rate form; use the eform to report it.
先表示感谢了!