[R] fitting a logistic regression with mixed type of variables

2009-11-16 Thread Jack Luo
Hi, I am trying to fit a logistic regression using glm, but my explanatory variables are of mixed type: some are numeric, some are ordinal, some are categorical, say If x1 is numeric, x2 is ordinal, x3 is categorical, is the following formula OK? *model - glm(y~x1+x2+x3,

Re: [R] fitting a logistic regression with mixed type of variables

2009-11-16 Thread David Winsemius
On Nov 16, 2009, at 2:22 PM, Jack Luo wrote: Hi, I am trying to fit a logistic regression using glm, but my explanatory variables are of mixed type: some are numeric, some are ordinal, some are categorical, say If x1 is numeric, x2 is ordinal, x3 is categorical, is the following formula

Re: [R] fitting a logistic regression with mixed type of variables

2009-11-16 Thread Jack Luo
David, Thanks for your reply. Since I am kinda new to this forum, could you please advise me on where to read those questions in R-help? In addition, I did not pay much attention to the na.action, probably I should use na.action = na.omit instead of na.pass. -Jack On Mon, Nov 16, 2009 at 2:32

Re: [R] fitting a logistic regression with mixed type of variables

2009-11-16 Thread David Winsemius
On Nov 16, 2009, at 2:53 PM, Jack Luo wrote: David, Thanks for your reply. Since I am kinda new to this forum, could you please advise me on where to read those questions in R-help? http://search.r-project.org/nmz.html