Learn R Programming

rfUtilities (version 2.1-5)

rf.imp.freq: Random Forest variable selection frequency

Description

Evaluates the frequency that an independent variables are selected greater-than/equal-to defined importance threshold

Usage

rf.imp.freq(x, p = 0.6, plot = TRUE)

Arguments

x

random forest object

p

Threshold of row standardized importance values

plot

Plot frequencies (TRUE/FALSE)

Value

A list class object with the following components: frequency: vars - names of independent variables used in model global - if a variable greater-than/equal-to importance threshold, else NA column for each class where greater-than/equal-to importance threshold, else NA var.freq - frequency a variable is selected for global and local importance >= importance threshold

importance: Standardized importance matrix from randomForest model

Examples

Run this code
# NOT RUN {
 
 require(randomForest)
 data(iris)
 iris.rf <- randomForest(Species ~ ., data=iris, importance=TRUE)
 rf.imp.freq(iris.rf, p = 0.30)

# }

Run the code above in your browser using DataLab