.decrease_group_sizes {ldamatch} | R Documentation |
Used for generating all group size combinations for one specific total size iteratively, starting from grpsizes with one row containing original group sizes.
.decrease_group_sizes(grpsizes, grpnames, minpergrp)
grpsizes |
A data.table with the columns containing the group names, and the rows containing a particular setup of group sizes. All rows are expected to have the same sum (not checked). |
grpnames |
The group names (specified because the table can have other columns as well). |
minpergrp |
The minimum number of subjects to be preserved per group. |
A data.table with the same format as grpsizes, containing all possible group setups totaling to one less than the total in grpsizes.