Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Logistic regression, adjusted odds ratio and reference category

    I am trying to get adjusted odds ration. I have 1 binary categorical outcome dependent variable [SUPINFEC] and THREE different categorical predictor variables [WNDCLAS , SEX and AGE]. I want to calculate odds ratio for SUPINFEC while adjusting for SEX and AGE. In gender and age my reference category should be 0. I am using logistic command and getting this output. Can anyone confirm me is this sufficient or I have to use mhodds command.

    logistic SUPINFEC ib1.WNDCLAS SEX, nolog

    Logistic regression Number of obs = 29,714
    LR chi2(4) = 12.55
    Prob > chi2 = 0.0137
    Log likelihood = -1272.5405 Pseudo R2 = 0.0049

    ------------------------------------------------------------------------------
    SUPINFEC | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval]
    -------------+----------------------------------------------------------------
    WNDCLAS |
    2 | 1.758506 .5750936 1.73 0.084 .9263409 3.338234
    3 | 1.084204 .3938688 0.22 0.824 .5319703 2.209708
    4 | .343202 .1431379 -2.56 0.010 .1515453 .7772437
    |
    SEX | 1.090288 .1525628 0.62 0.537 .8287692 1.43433
    _cons | .0072803 .0006607 -54.24 0.000 .0060939 .0086976
    ------------------------------------------------------------------------------
    Note: _cons estimates baseline odds.

  • #2
    Well, if you want to adjust for age, it has to be included in the logistic regression. So
    Code:
    logistic SUPINFEC i.WNDCLAS i.SEX i.AGE

    Comment

    Working...
    X