Dear every experts in statistics:

     Given I have three variables (die,x1, x2).  These variables are  all dichotomous and every variables have six values. Data list in following : 

   die  x1   x2

    0    0    1

    0    0    0 

    0    0    1

    1    0    0 

    1    1    1

    1    1     1 

 I do logistc regression in STATA as following:

logit die x1

The results is following:

note: x1 != 0 predicts success perfectly

x1 dropped and 2 obs not used

Logistic regression Number of obs = 4

LR chi2(0) = 0.00

Prob > chi2 = .

Log likelihood = -2.2493406 Pseudo R2 = 0.0000

------------------------------------------------------------------------------

die | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]

-------------+----------------------------------------------------------------

x1 | 1 (omitted)

_cons | .3333333 .3849002 -0.95 0.341 .0346734 3.20451

------------------------------------------------------------------------------

I find the Odds Ratio for x1 is 1 and number in this regression is four

My question is why the  number change from 6 to 4 ?

logistic die x2

The results is following:

Logistic regression Number of obs = 6

LR chi2(1) = 0.68

Prob > chi2 = 0.4097

Log likelihood = -3.819085 Pseudo R2 = 0.0817

------------------------------------------------------------------------------

die | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]

-------------+----------------------------------------------------------------

x2 | 4 6.928203 0.80 0.423 .1341948 119.2297

_cons | .5 .6123724 -0.57 0.571 .0453383 5.514101

------------------------------------------------------------------------------

I find the Odds Ratio for x2 is 4 and number in this regression is six

Then  i do mutiple logistic regress in STATA

logistic die  x1  x2

The results is following:

note: x1 != 0 predicts success perfectly

x1 dropped and 2 obs not used

note: x2 != 0 predicts failure perfectly

x2 dropped and 1 obs not used

Logistic regression Number of obs = 3

LR chi2(0) = 0.00

Prob > chi2 = .

Log likelihood = -1.9095425 Pseudo R2 = 0.0000

------------------------------------------------------------------------------

die | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]

-------------+----------------------------------------------------------------

x1 | 1 (omitted)

x2 | 1 (omitted)

_cons | .5 .6123724 -0.57 0.571 .0453383 5.514101

------------------------------------------------------------------------------

I find the Odds Ratio for  x2 change to 1 and number in this regression is three

Why this happen? What should i do?

Thanks very much!

Wandong Hong

Similar questions and discussions