many_rf: Generate a list of randomForest models.

Description Usage Arguments Value Examples

View source: R/many_rf.R

Description

Generate a list of randomForest models.

Usage

1
many_rf(df, y, nforest = 100, seed = 1234, ...)

Arguments

df

Dataframe that contains the variables to be included in the model.

y

The response vector.

nforest

Number of random forests to create, 100 by default.

seed

Numeric value passed to set.seed, for ensuring reproducibility. Although the default is 1234, best practice would be to vary the seed, perhaps by project, or even by model.

...

Optional parameters to pass to randomForest.

Value

A list object containing nforest randomForest models.

Examples

1
2
many_rf(data = vfd_fam.norm[, -length(vfd_fam.norm)], y = vfd_fam.norm[, "VFDandAlive"],
  importance = TRUE)

cb-42/cbmbtools documentation built on Jan. 9, 2021, 1:38 a.m.