Get all combinations of subgroup factors up to maxk
Source:R/subgroup_search.R
get_combinations_info.RdGenerates all possible combinations of subgroup factors up to a specified maximum size.
Examples
# L=6 single-factor subgroups, combinations up to 2 factors
info <- get_combinations_info(L = 6, maxk = 2)
info$max_count # total number of combinations
#> [1] 21
length(info$indices_list)
#> [1] 2