Compile list of all possible ways to assign levels of the allocation variable to a given set of subgroups
Compile list of all possible ways to assign levels of the allocation variable to a given set of subgroups
All information needed to perform this function (primarily the number and size of subgroups plus the levels of the allocation variable) are contained in and extracted from the subgroup object.
subgroup_object: A subgrouping object as returned by form_homogeneous_subgroups()
fullTree: Boolean: Enforce full search of the possibility tree, independent of the value of maxCalls
maxCalls: Maximum number of recursive calls in the search tree, to avoid long run times with very large trees
Returns
List of possible allocations; Each allocation is an integer vector of allocation levels that are assigned in that order to the subgroups with given sizes