Re: [R] simple question on glm

2009-06-18 Thread David Winsemius
On Jun 18, 2009, at 5:50 PM, Marc Schwartz wrote: On Jun 18, 2009, at 4:36 PM, Jack Luo wrote: Hi, I am trying to use glm to fit my data, wondering if there is a easy way to fit a glm without typing all the explanatory variable names. For example, if I have 100 explanatory variables x1,

Re: [R] simple question on glm

2009-06-18 Thread Marc Schwartz
On Jun 18, 2009, at 4:36 PM, Jack Luo wrote: Hi, I am trying to use glm to fit my data, wondering if there is a easy way to fit a glm without typing all the explanatory variable names. For example, if I have 100 explanatory variables x1, x2, ..., x100 and response variable is y, I don't

[R] simple question on glm

2009-06-18 Thread Jack Luo
Hi, I am trying to use glm to fit my data, wondering if there is a easy way to fit a glm without typing all the explanatory variable names. For example, if I have 100 explanatory variables x1, x2, ..., x100 and response variable is y, I don't want to do something like glm1 <- glm(y ~ x1 + x2 + ...