randomForest.default: Random forest default function

randomForest.defaultR Documentation

Random forest default function

Description

Random forest default function

Usage

## Default S3 method:
randomForest(
  x,
  y = NULL,
  xtest = NULL,
  ytest = NULL,
  ntree = 500,
  mtry = if (!is.null(y) && !is.factor(y)) max(floor(ncol(x)/3), 1) else
    floor(sqrt(ncol(x))),
  mtry.select.prob = rep(1/ncol(x), ncol(x)),
  keep.subset.var = NULL,
  replace = TRUE,
  classwt = NULL,
  cutoff,
  strata,
  sampsize = if (replace) nrow(x) else ceiling(0.632 * nrow(x)),
  nodesize = if (!is.null(y) && !is.factor(y)) 5 else 1,
  maxnodes = NULL,
  importance = FALSE,
  localImp = FALSE,
  nPerm = 1,
  proximity,
  oob.prox = proximity,
  norm.votes = TRUE,
  do.trace = FALSE,
  keep.forest = !is.null(y) && is.null(xtest),
  corr.bias = FALSE,
  keep.inbag = FALSE,
  ...
)

karlkumbier/iRF2.0 documentation built on April 12, 2025, 1:44 p.m.