R/permute_subgroups.R
shuffle_with_subgroup_formation.Rd
Compose shuffling function based on already available subgrouping and allocation information
shuffle_with_subgroup_formation(
subgroup_object,
subgroup_allocations,
keep_separate_vars = c(),
report_grouping_as_attribute = FALSE
)
A subgrouping object as returned by form_homogeneous_subgroups()
A list of possible assignments of the allocation variable as returned by compile_possible_subgroup_allocation()
Vector of column names in sample table; items with identical values in those variables will not be put into the same subgroup if at all possible
Boolean, if TRUE, add an attribute table to the permutation functions' output, to be used in scoring during the design optimization
Shuffling function that on each call returns an index vector for a valid sample permutation