rang_mtry: Tune ranger models for 'mtry'

View source: R/rang.R

rang_mtryR Documentation

Tune ranger models for mtry

Description

Fits ranger() models for a given range of values of mtry. Output is a table and graph giving OOB errors.

Usage

rang_mtry(
  data,
  fmla,
  m_vec,
  seed = 1,
  num.trees = 200,
  respect.unordered.factors = TRUE,
  ...
)

Arguments

data

A data frame containing both input and target variables.

fmla

A formula for the model.

m_vec

Integer vector of values of tuning parameter mtry.

seed, num.trees, respect.unordered.factors

Optional arguments passed to ranger(). Defaults are 1, 200 and TRUE respectively.

...

Other arguments passed to ranger.


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