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