如何用Stata做多项Logit模型

如题所述

第1个回答  2017-10-11
stata项logit模型两命令 xtlogitmlogit 具体命令要结合数据本结构进行析
第2个回答  2017-10-11
命令格式:
nlogit depvar [indepvars] [if] [in] [weight] [|| lev1_equation [|| lev2_equation ...]] || altvar: [byaltvarlist], case(varname) [nlogit_options]
例:
webuse restaurant
nlogitgen type = restaurant(fast: Freebirds | MamasPizza, family: CafeEccell | LosNortenos | WingsNmore, fancy: Christophers | MadCows)
nlogittree restaurant type, choice(chosen) case(family_id) . nlogit chosen cost distance rating || type: income kids, base(family) || restaurant:, noconst case(family_id)