打算用stata软件做嵌套logit数据分析,但是如何下手,非常迷茫,求给位指教。
将消费者购买决策分为三个层次,第一个层是购买的档次,第二个层次是国内or国外品牌,第三个层次是具体的产品。影响因素主要有产品以及消费者个人的因素:如ABCDEFG等50个变量。目前数据都有了,就是不知道如何动手。看了下stata12的教程,如下,真心不懂,求各位大哥大姐的帮助,指点思路,万分感谢!!
Nested logit regression
nlogit depvar [indepvars] [if] [in] [weight] [|| lev1_equation [||
lev2_equation ...]] || altvar: [byaltvarlist] case(varname),
[options]
where the syntax of lev#_equation is
altvar: [byaltvarlist] [, base(#|lbl) estconst]
Create variable based on specification of branches
nlogitgen newaltvar = altvar (branchlist) [, nolog]
where branchlist is
branch, branch [, branch ...]
and branch is
[label:] alternative [| alternative [| alternative ...] ]
Display tree structure
nlogittree altvarlist [if] [in] [weight] [, choice(depvar) nloabel
nobranches]