randomForestSRC::var.select
function for the
randomForestSRC regression forest mtcars_rf
.We build a regression randomForest (mtcars_rf
) with the
mtcars
Motor Trend Car Road Tests data, then run the
randomForestSRC::var.select
function to determine minimal depth variable selection.
This "data set" is a cache of the var.select
function, which runs the
minimal depth variable selection method from the mtcars_rf
random
forest model.
The data was extracted from the 1974 Motor Trend US magazine, and comprises fuel consumption and 10 aspects of automobile design and performance for 32 automobiles (1973-74 models).
Ishwaran H. and Kogalur U.B. (2014). Random Forests for Survival, Regression and Classification (RF-SRC), R package version 1.5.4.
Ishwaran H. and Kogalur U.B. (2007). Random survival forests for R. R News 7(2), 25-31.
Ishwaran H., Kogalur U.B., Blackstone E.H. and Lauer M.S. (2008). Random survival forests. Ann. Appl. Statist. 2(3), 841-860.
mtcars
var.select
rfsrc
mtcars_rf
gg_minimal_depth
plot.gg_minimal_depth
## The data was built with the following command
mtcars_rf <- rfsrc(mpg ~ ., data = mtcars)
airq_vs <- var.select(mtcars_rf)
gg_dta <- gg_minimal_depth(mtcars_vs)
plot(gg_dta)
Run the code above in your browser using DataLab