因变量为虚拟变量是否入学,入学schooling=1 用logit模型输入命令logit schooling var1 var2......varn 后报错显示:
outcome does not vary; remember:
0 = negative outcome,
all other nonmissing values = positive outcome
以下是tab schooling的结果:
schooling | Freq. Percent Cum.
------------+-----------------------------------
0 | 78 3.63 3.63
1 | 2,073 96.37 100.00
------------+-----------------------------------
Total | 2,151 100.00
请教一下大神们可能是哪里出问题了?
会不会是schooling==0的样本太少导致的?
感谢!