RF_train: RF_train

View source: R/RF_train.R

RF_trainR Documentation

RF_train

Description

this function trains a random forest model with training data folds

Usage

RF_train(
  data = training_dataset,
  formula = y ~ x,
  mtry = NULL,
  nodesize = NULL,
  model_type = "rfsrc"
)

Arguments

data

the training dataset

formula

formula describing the model fit

mtry

number of variables to possibly split at each node

nodesize

minimum size of terminal node

model_type

which type of rfsrc to use

ntrain_folds

number of training folds

Examples

number_of_training_participants <- 10
covariance_matrix <- diag(2)
outcome_column <- 1
means <- c(0,0)
training_dataset <- simulate_data(number_of_training_participants,covariance_matrix,outcome_column,means)
random_forest <- RF_Train(data=training_dataset,formula=y~x,mtry=NULL,nodesize=NULL,model_type="rfsrc")

DCAN-Labs/RFRF documentation built on March 15, 2024, 2:33 p.m.