如何用Stata做多项Logit模型

2025-03-12 20:35:17
推荐回答(2个)
回答1:

stata项logit模型两命令 xtlogitmlogit 具体命令要结合数据本结构进行析

回答2:

命令格式:
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)