Error in contrasts message when using logistic regression code.
On Oct 23, 2012, at 1:57 PM, hoguejm wrote:
How to change categorical vars to factors.
There is nio such thing as a "categorical var" in R, although the closest thing to one is a factor class vector. If you have either numeric or character vectors and you want them to become factors: facvar <- factor(oldvar)
I am very new at R
Yes. Consider abandoning Nabble. And do read the Posting Guide.
View this message in context: http://r.789695.n4.nabble.com/Error-in-contrasts-message-when-using-logistic-regression-code-tp4647198p4647226.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ R-help at r-project.org mailing list 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.
David Winsemius, MD Alameda, CA, USA