Announcement

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

  • Adjusting for Sex in Logistic Regression Model

    Hello,

    How do you adjust for sex in a logistic regression? By adding the variable to the model is it already adjusted for or is there some other method I need to follow?
    Also, if my sex variable is coded as 1=male and 2=female, do I need to recode it as 0=male and 1=female in order to adjust for it?

    I am currently using the following command:
    Code:
     logistic depression curmetsyn agenew sex curdiabetic curdrnk
    Thank you in advance!

  • #2
    By most common usage, I think that you "adjust for" a factor by including it as a predictor in a regression model. For your second question, include it as a factor variable:
    Code:
    logistic depression curmetsyn agenew i.sex curdiabetic curdrnk
    Do likewise with any of the other predictors that are categorical.

    Comment

    Working...
    X