Learn R Programming

rtemis (version 1.4.3)

setup_GroupPartition: Set up a GroupPartitionConfig

Description

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)

Value

GroupPartitionConfig object.

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.

Author

EDG

Examples

Run this code
setup_GroupPartition(column = "subject_id", train_p = 0.8, seed = 2026L)

Run the code above in your browser using DataLab