Uses interaction() on the categorical Z columns only. Characters (and logicals, if enabled) are coerced to factor for stable behavior.
make_strata_from_categorical_Z(
sub_data,
Z,
allow_character = TRUE,
allow_logical = TRUE
)A factor defining strata (same length as nrow(sub_data)).
data.frame containing Z columns.
character vector of Z column names.
logical; treat character as categorical. Default TRUE.
logical; treat logical as categorical. Default TRUE.
Rows with NA in any stratification column will receive NA strata.