I DO A LOGISTIC REGRESSION AND GET THIS:
logistic bas dose15 sex
note: sex != 1 predicts failure perfectly
sex dropped and 15 obs not used
Logistic regression Number of obs = 88
LR chi2(1) = 0.00
Prob > chi2 = 0.9569
Log likelihood = -55.041781 Pseudo R2 = 0.0000
------------------------------------------------------------------------------
bas | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
dose15 | .9683794 .5768124 -0.05 0.957 .3013213 3.112156
sex | 1 (omitted)
_cons | .4693878 .1186413 -2.99 0.003 .2860119 .7703347
------------------------------------------------------------------------------
Here is my data, I appreciate if someone can tell me what am I doing wrong:
THANKS!!
logistic bas dose15 sex
note: sex != 1 predicts failure perfectly
sex dropped and 15 obs not used
Logistic regression Number of obs = 88
LR chi2(1) = 0.00
Prob > chi2 = 0.9569
Log likelihood = -55.041781 Pseudo R2 = 0.0000
------------------------------------------------------------------------------
bas | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
dose15 | .9683794 .5768124 -0.05 0.957 .3013213 3.112156
sex | 1 (omitted)
_cons | .4693878 .1186413 -2.99 0.003 .2860119 .7703347
------------------------------------------------------------------------------
Here is my data, I appreciate if someone can tell me what am I doing wrong:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte bas long sex 1 1 0 1 1 1 1 1 0 1 0 1 0 0 0 1 1 1 0 1 0 0 0 1 1 1 0 0 1 1 0 1 1 1 0 1 0 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 1 1 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 1 1 0 1 1 1 1 1 0 1 0 1 0 1 1 1 0 1 1 1 0 1 0 0 0 1 1 1 0 1 1 1 0 1 0 1 0 0 1 1 0 1 0 1 0 0 0 1 0 1 0 1 1 1 0 0 0 1 0 1 0 0 0 1 0 0 1 1 end label values sex sex label def sex 0 "Mujer", modify label def sex 1 "Hombre", modify
Comment