Learn R Programming

mosaic (version 0.4-1)

model.vars: extract predictor variables from a model

Description

extract predictor variables from a model

Usage

model.vars(model)

Arguments

model
a model, typically of class lm or glm

Value

  • a vector of variable names

Examples

Run this code
model <- lm( wage ~ poly(exper,degree=2), data=CPS )
model.vars(model)

Run the code above in your browser using DataLab