% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_control.R
\name{model_control}
\alias{model_control}
\title{Control parameters for global model fitting}
\usage{
model_control(validation_type = c("lgo", "none"), number = 10L, p = 0.75)
}
\arguments{
\item{validation_type}{a character string specifying the validation method:
\itemize{
\item{\code{"lgo"}: Leave-group-out cross-validation. At each iteration,
a proportion \code{p} of observations is retained for training and the
remainder is used for validation. This is repeated \code{number} times.}
\item{\code{"none"}: No cross-validation is performed.}
}}

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

\item{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 \code{validation_type = "lgo"}. Default is 0.75.}
}
\value{
A list of class \code{"model_control"} containing the specified
parameters.
}
\description{
Specifies cross-validation settings for the \code{\link{model}} function.
}
\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)

}
\seealso{
\code{\link{model}}
}
\author{
\href{https://orcid.org/0000-0002-5369-5120}{Leonardo Ramirez-Lopez}
}
