In logistic regression SAS has the option to model 1 rather than 0 using “descending” option. Is there any method in R, where we can do the same thing?
The code I’m using is the following:
glm(y~x1+x2+x3, family=binomial(link="logit"), na.action=na.pass)
Regards,
Ari
The option is exactly the same as modeling
1-y, and will return the same coefficients but with a different sign. So either you put1-yin the model, or you just invert your coefficients :