Description Usage Arguments Details Value Methods (by class)
Extract selected model terms from a (regularized) model
1 2 3 4 5 6 7 8 9 10 | get_selected(model, ...)
## S3 method for class 'regsubsets'
get_selected(model, ...)
## S3 method for class 'gbm'
get_selected(model, ...)
## S3 method for class 'glmnet'
get_selected(model, ...)
|
model |
a fitted model object for which |
... |
other arguments to pass on to methods |
get_selected.gbm
also counts variables used (only) for surrogate
splits as selected.
a logical matrix that summarizes which covariates (=columns) were in the model in each iteration or for each value of the regularization parameter (=rows). First row is the null model (typically all FALSE).
regsubsets
: method for regsubsets
gbm
: method for gbm
objects
glmnet
: method for glmnet
objects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.