Learn R Programming

rfUtilities (version 2.1-5)

rf.regression.fit: Random Forest fit statistics

Description

Evaluates fit and overfit of random forests regression

Usage

rf.regression.fit(x)

Arguments

x

randomForest regression object

Value

A list and rf.fit class object with "fit" matrix of fit statistics and "message" indicating overfit risk.

Examples

Run this code
# NOT RUN {
  library(randomForest)
  set.seed(131)
  data(airquality)
  airquality <- na.omit(airquality)
  ( rf.aq <- randomForest(airquality[,1:3], airquality[,"Ozone"]) )	
  rf.regression.fit(rf.aq)

# }

Run the code above in your browser using DataLab