Exact search for a partial principal balance on grouped parts
Source:R/tabu_search.R
partial_pb_exact.RdFinds the grouped balance with maximum variance among all assignments whose
number of active groups is between min_parts and max_parts.
Arguments
- X
A numeric matrix with strictly positive finite entries. Rows are observations and columns are compositional parts.
- lI
A list defining a partition of a subset of the columns of
X. IfNULL, each column ofXis used as a singleton group.- min_parts
Integer. Minimum number of active groups.
- max_parts
Integer or
NULL. Maximum number of active groups. IfNULL, all groups may be active.- method
Exhaustive search method. Currently only
"restricted"is implemented; it enumerates only supports whose sizes are inside the requested range and assigns signs in binary Gray-code order.
Value
A list with the following elements:
dimDimension of the grouped problem, equal to
length(lI) - 1.lIThe input grouping structure.
varianceVariance criterion of the best grouped balance.
balance_rawInteger vector in \(\{-1,0,1\}\) describing the best grouped split.
balanceThe corresponding one-column balance basis.
min_partsMinimum number of active groups.
max_partsMaximum number of active groups.