Is the problem with Data or the command? I need to run binary logit regression. Version is Stata 15.1.
-
Login or Register
- Log in with
* Example generated by -dataex-. For more info, type help dataex
clear
input float freq byte(Q9 Q14 Q15)
25 0 2 1
26 0 2 2
1 0 4 2
1 1 2 2
83 1 3 1
25 1 3 2
10 1 4 1
3 1 4 2
end
. logistic Q9 i.Q14 i.Q15 [fw=freq]
note: 3.Q14 != 0 predicts success perfectly;
3.Q14 omitted and 2 obs not used.
Logistic regression Number of obs = 66
LR chi2(2) = 51.25
Prob > chi2 = 0.0000
Log likelihood = -8.4826648 Pseudo R2 = 0.7513
------------------------------------------------------------------------------
Q9 | Odds ratio Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
Q14 |
3 | 1 (empty)
4 | 621.6726 901.493 4.44 0.000 36.24322 10663.43
|
2.Q15 | .5933505 .8818974 -0.35 0.725 .0322233 10.92579
_cons | .0248879 .0290885 -3.16 0.002 .0025184 .2459559
------------------------------------------------------------------------------
Note: _cons estimates baseline odds.
.
logistic Q9 i.Q14 i.Q15
Comment