Skip to contents

Checks explicit identifiers only; this does not audit upstream preprocessing fit scopes, verify biological identity, or prevent leakage in external model software unless called before fitting. No backend is needed.

Usage

validateSubjectSplit(train, valid)

Arguments

train, valid

Case identity data frames as in withCaseData().

Value

Invisibly TRUE, or an error for shared cases or subjects, invalid labels, or inconsistent participant aliases.

Examples

train <- data.frame(case_id = c("c1", "c2"), subject_id = c("s1", "s2"))
valid <- data.frame(case_id = c("c3", "c4"), subject_id = c("s3", "s4"))
validateSubjectSplit(train, valid)