rang_oob_err: Out-of-bag error rates by number of trees for a ranger random...

View source: R/rang.R

rang_oob_errR Documentation

Out-of-bag error rates by number of trees for a ranger random forest

Description

Returns a table of out-of-bag error rates for a ranger random forest using number of trees from 5 to all trees in steps of 5. The supplied ranger object must have been created with keep.inbag = TRUE argument.

Usage

rang_oob_err(rf, data, start = 5L, by = 5L, plot = TRUE)

Arguments

rf

A ranger random forest object, created with keep.inbag = TRUE.

data

A data frame used to fit rf. Must contain target variable.

start, by

Error rates are evaluated for number of trees from start to maximum number of trees in steps of by.

plot

Optional logical. Output a plot or not.


jedwards24/jemodel documentation built on July 1, 2023, 3:59 p.m.