model_control: Control parameters for global model fitting

View source: R/model_control.R

model_controlR Documentation

Control parameters for global model fitting

Description

Specifies cross-validation settings for the model function.

Usage

model_control(validation_type = c("lgo", "none"), number = 10L, p = 0.75)

Arguments

validation_type

a character string specifying the validation method:

  • "lgo": Leave-group-out cross-validation. At each iteration, a proportion p of observations is retained for training and the remainder is used for validation. This is repeated number times.

  • "none": No cross-validation is performed.

number

an integer indicating the number of cross-validation iterations. Only used when validation_type = "lgo". Default is 10.

p

a numeric value between 0 and 1 indicating the proportion of observations to retain for training at each cross-validation iteration. Only used when validation_type = "lgo". Default is 0.75.

Value

A list of class "model_control" containing the specified parameters.

Author(s)

Leonardo Ramirez-Lopez

See Also

model

Examples

# Default settings (leave-group-out CV with 10 iterations)
model_control()

# No cross-validation
model_control(validation_type = "none")

# Custom CV settings
model_control(validation_type = "lgo", number = 20, p = 0.80)


resemble documentation built on April 21, 2026, 1:07 a.m.