grouped_cv: Evaluate a model with grouped cross-validation

View source: R/021-validation-program.R

grouped_cvR Documentation

Evaluate a model with grouped cross-validation

Description

Evaluate a model with grouped cross-validation

Usage

grouped_cv(
  data,
  formula,
  family = stats::binomial(),
  group = "participant_id",
  v = 5L,
  metric = c("log_loss", "brier", "accuracy"),
  seed = 1L
)

Arguments

data

Data frame.

formula

Model formula.

family

GLM family.

group

Grouping columns.

v

Number of folds.

metric

Metric: log loss, Brier score, or accuracy.

seed

Random seed.

Value

An 'eye_grouped_cv' object.


eyeprocess documentation built on Sept. 28, 2026, 5:08 p.m.

Related to grouped_cv in eyeprocess...