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?
After digging around a bit more I was able to find out that R will automatically create a dummy variable when you include a chr variable like "state." I had assumed that I had to generate new dummy variable columns (as in Stata) and then include them in the regression. As a result, all I had to do was include "state" in my list of RHS variables in glm().