Create matrices from combinations of columns
MatrixCombn(
matrix,
first.stem,
last.stem = NULL,
q.levels,
rm.last = TRUE,
row.means = TRUE
)
matrix to combine
first name of columns to use (e.g., "m" for mean)
optional last name of columns to use (e.g., "p" for proportions) , Default: NONE
number of levels per column
logical, indicating whether or not to remove last combination (i.e., m1m2m3m4) , Default: TRUE
logical, indicating whether or not to compute row means from combined columns, else use row sums, Default: TRUE