现在在做毕业论文,有关灾害情报对人们搬家意识影响的课题。
原本用stata做了mlogit的分析,因为搬家意识的调查结果分为无搬家意愿,有搬家意愿并且能够实现和有搬家意愿但是难以实现这三种,教授要求用nlogit也做一遍,就是分为有意愿和无意愿两类,无意愿下又分为能实现和难以实现两类。
目前弄明白了如何分层,就是弄出了下面的样子,再之后想进行nlogit分析但是出现错误提示,自己是头一次接触stata,实在不明白应该怎么弄,希望哪位好心的大神大神指点一下。
. nlogitgen type = move(wu:1, you:2|3)
new variable type is generated with 2 groups
label list lb_type
lb_type:
1 wu
2 you
. nlogittree move type
tree structure specified for the nested logit model
type N move N
----------------------------
wu 14262 --- 1 14262
you 9113 --- 2 2532
+- 3 6581
----------------------------
total 23375
N = number of observations at each level
目前只进行到了这里,接下来输入nlogit move1 各种自变量名称后出现了 option case() required
从这步开始不知道应该怎么做了,求指点迷津,多谢。