Skip to contents

A split that keeps every case sharing a group ID on the same side.

Usage

setup_GroupPartition(column = NULL, train_p = 0.75, seed = NULL)

Arguments

column

Optional Character: Name of the column holding per-case group IDs.

train_p

Numeric (0, 1): Approximate training set fraction, honored at the group level.

seed

Optional Integer [0, Inf): Random seed.

Value

GroupPartitionConfig object.

Author

EDG

Examples

setup_GroupPartition(column = "subject_id", train_p = 0.8, seed = 2026L)
#> <GroupPartitionConfig>
#> 
#>    method: <chr> group
#>    column: <chr> subject_id
#>   train_p: <nmr> 0.80
#>      seed: <int> 2026
#>