cross_validated_group_fits: Perform Cross-Validation on Group Fits of a Model

View source: R/fitting.R

cross_validated_group_fitsR Documentation

Perform Cross-Validation on Group Fits of a Model

Description

This function runs cross-validation for group fits of a specified model using a set of combined data conditions. It supports both standard and stochastic models and performs fitting for each fold in the cross-validation process. The function records both the training accuracy and the testing results for each fold.

Usage

cross_validated_group_fits(model_name, combined_data, lower, upper)

Arguments

model_name

A string specifying the name of the model to be cross-validated.

combined_data

A list of combined data conditions used for cross-validation.

lower

Numeric vector of lower bounds for the model's parameters.

upper

Numeric vector of upper bounds for the model's parameters.

Value

A list containing cross-validation results, including fitted parameters, training accuracy, and a data frame of test results for each fold.


kachergis/XSLmodels documentation built on Feb. 25, 2024, 10:43 p.m.