[R] Response Variable Coding
Abraham Mathew
mathewanalytics at gmail.com
Wed Aug 19 23:43:01 CEST 2015
Very simple question that I want confirm.
Let's say that I have a response variable. What are the appropriate ways
that it can be coded for a logistic regression model?
1. It can be 0/1 and a factor
2. It can be 1/2 and a factor
3. It can be characters and a factor, where the second letter takes on the
1. (bad/good becomes 0/1).
4. ?
5. ?
My question is....are 1, 2, and 3 all correct, and are there other coding
schemes that glm can take.
Thanks!
[[alternative HTML version deleted]]
More information about the R-help
mailing list