Learn R Programming

mosaicCore (version 0.9.0)

modelVars: extract predictor variables from a model

Description

extract predictor variables from a model

Usage

modelVars(model)

Value

a vector of variable names

Arguments

model

a model, typically of class lm or glm

Examples

Run this code
if (require(mosaicData)) {
  model <- lm( wage ~ poly(exper, degree = 2), data = CPS85 )
  modelVars(model)
}

Run the code above in your browser using DataLab