I'm trying to run a logistic regression with dummy variables for each state. Is there an easier way to add these columns to my list of columns in glm() rather than specifying each by name?
For example, something like:
logit1 <- glm(res ~ var1 + var2 + col[3:35] ... data=mydf)
^ This doesn't work.