Announcement

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

  • Change reference group in logistic regression analysis

    Hello,

    I have a data set including a binary outcome variable "med" coded as 0 and 1. Predictors include "score" (low=0, medium=1, high=2) and "age".

    I use Stata 14.1 and run the following command:
    logit med i.score age, nolog
    then I got this model:
    logit(med)=cons+a*age-0.74*score1-0.86*score2
    (Both P for -0.74 and -0.86 are less than 0.05)

    Now I want to change the reference group to high (2). I use the following command:
    logit med ib2.score age, nolog
    then I got this model:
    logit(med)=cons2+a*age+0.86*score0+0.12*score1
    (P for 0.86 is less than 0.05 but P for 0.12 is over 0.05)

    So I am wondering if the reference group is changed, the model will become a totally different model? Is this correct? (As I think the model should be the same no matter whether I change the reference group or not.)

    Thank you!

  • #2
    Yes, this is correct. I suggest you take compute, by hand, for a reasonable value of age, the predicted probabilities for score=0, for score=1, and for score=2 in each of your models. You will find the predictions are identical. In your first model, the coefficients for score=1 and score=2 are similar to each other, and both are significantly different from 0, which is the coefficient, in that model, for score=0. In your second model, it is no surprise that the coefficient for score=2, which we saw before is close to that for score=3, is now not significantly different from 0, which is the coefficient for score=2 in this model. And the coefficient for score=0 is significantly different from 0, the coefficient on score=2 in this model, since the coefficient on score=2 in the first model was significantly different from 0, the coefficient on score=0 in the first model.
    Last edited by William Lisowski; 27 Jun 2016, 17:32.

    Comment


    • #3
      Thank you very much for the explanation William!

      Comment

      Working...
      X