do_validate | R Documentation |
This function performs leave-one-out robustness testing of your ALASCA model. If you didn't specify the number of runs n_validation_runs
when initializing the model (see ALASCA
), you can do it by running for example model$n_validation_runs <- 100
prior to calling validate
. Your dataset is divided into n_validation_folds
partitions, keeping group proportions, and one of these are left out. n_validation_folds
is set the same way as n_validation_runs
.
do_validate()
object |
An ALASCA object |
participant_column |
The name of the column containing participant identifier. Needed if not set during initialization of the model. |
validate_regression |
Whether to validate regression models |
An ALASCA object
load("PE.Rdata")
model$n_validation_runs <- 10
model.val <- validate(model, participant_column = "ID")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.