怎样用stata做嵌套logit模型

如题所述

命令格式:
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)
logit chosen cost distance rating || type: income kids, base(family) || restaurant:, noconst case(family_id)
温馨提示:答案为网友推荐,仅供参考