View source: R/RF_optimal_train.R
RF_optimal_train | R Documentation |
this function trains the optimal random forest parameters with training folds
RF_optimal_train(
data = training_dataset,
formula = y ~ x,
Optimal_RF_Parameters = NULL,
model_type = "rfsrc"
)
formula |
formula describing the model fit |
Optimal_RF_Parameters |
returned from RF_test function |
model_type |
which type of rfsrc to use |
training_dataset |
the training data |
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)
optimal_random_forest <- RF_optimal_train(data=training_dataset,formula=y~x,Optimal_RF_Parameters=NULL,model_type="rfsrc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.