powered by
GroupPartitionConfig
A split that keeps every case sharing a group ID on the same side.
setup_GroupPartition(column = NULL, train_p = 0.75, seed = NULL)
GroupPartitionConfig object.
Optional Character: Name of the column holding per-case group IDs.
Numeric (0, 1): Approximate training set fraction, honored at the group level.
Optional Integer [0, Inf): Random seed.
EDG
setup_GroupPartition(column = "subject_id", train_p = 0.8, seed = 2026L)
Run the code above in your browser using DataLab