Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

modelVars

extract predictor variables from a model


Description

extract predictor variables from a model

Usage

modelVars(model)

Arguments

model

a model, typically of class lm or glm

Value

a vector of variable names

Examples

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

mosaicCore

Common Utilities for Other MOSAIC-Family Packages

v0.9.0
GPL (>= 2)
Authors
Randall Pruim <rpruim@calvin.edu>, Daniel T. Kaplan <kaplan@macalester.edu>, Nicholas J. Horton <nhorton@amherst.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.