| predictors | R Documentation |
This class uses a model fit to determine which predictors were used in the final model.
predictors(x, ...)
x |
a model object, list or terms |
... |
not currently used |
For randomForest::randomForest(), party::cforest(), party::ctree(),
rpart::rpart(), ipred::ipredbagg(), ipred::bagging(),
earth::earth(), mda::fda(), pamr::pamr.train(),
superpc::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::nnet() may return missing values from predictors.
a character string of predictors or NA.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.