predictors

0th

Percentile

List predictors used in the model

This class uses a model fit to determine which predictors were used in the final model.

Keywords
models
Usage
predictors(x, ...)
Arguments
x

a model object, list or terms

not currently used

Details

For randomForest, cforest, ctree, rpart, ipredbagg, bagging, earth, fda, pamr.train, superpc.train, bagEarth and bagFDA, an attempt was made to report the predictors that were actually used in the final model.

The predictors function can be called on the model object (as opposed to the train) object) and the package will try to find the appropriate coed (if it exists).

In cases where the predictors cannot be determined, NA is returned. For example, nnet may return missing values from predictors.

Value

a character string of predictors or NA.

Aliases
  • predictors
  • predictors.formula
  • predictors.terms
  • predictors.train
  • predictors.default
  • predictors.list
  • predictors.rfe
  • predictors.sbf
Documentation reproduced from package caret, version 6.0-80, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.