varImpCoeff: Random Forest Variable Importance based on spline...

Description Usage Arguments Value Examples

View source: R/forest_variable_importance.R

Description

Returns the random forest variable importance based on the permutation accuracy measure, which is calculated as the difference in mean squared error between the original data and from randomly permuting the values of a variable.

Usage

1
varImpCoeff(forest, removeIntercept = TRUE, method = "oob")

Arguments

forest

a random forest, generated from splineForest()

removeIntercept

a boolean value, TRUE if you want to exclude the intercept in the calculations, FALSE otherwise.

method

the method to be used. This must be one of "oob" (out of bag), "all", "itb" (in the bag).

Value

a matrix of variable importance metrics.

Examples

1
importanceMatrix <- varImpCoeff(forest, removeIntercept=TRUE)

splinetree documentation built on July 18, 2019, 9:08 a.m.