powered by
extract predictor variables from a model
modelVars(model)
a model, typically of class lm or glm
lm
glm
a vector of variable names
# NOT RUN { model <- lm( wage ~ poly(exper,degree=2), data=CPS85 ) modelVars(model) # }
Run the code above in your browser using DataLab