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:
facva
How to change categorical vars to factors.
I am very new at R
Thanks
--
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.
_
On Oct 23, 2012, at 1:43 PM, hoguejm wrote:
> I have a rather large data set (about 30 predictor variables)
>
> I need to preform a logistic regression on this data. My response variable
> is binary.
>
> My code looks like this:
>
> mylogit <- glm(Enrolled ~ A + B + C + ... + EE, data = data,
I have a rather large data set (about 30 predictor variables)
I need to preform a logistic regression on this data. My response variable
is binary.
My code looks like this:
mylogit <- glm(Enrolled ~ A + B + C + ... + EE, data = data, family =
binomial(link="logit"))
with A,B,C, ... as my predic
4 matches
Mail list logo