do_validate: Validate the ALASCA model LMM

do_validateR Documentation

Validate the ALASCA model LMM

Description

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.

Usage

do_validate()

Arguments

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

Value

An ALASCA object

Examples

load("PE.Rdata")
model$n_validation_runs <- 10
model.val <- validate(model, participant_column = "ID")

andjar/ALASCA documentation built on March 2, 2024, 12:55 p.m.