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]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to