MatrixCombn: Matrix Combinations

View source: R/mcmc_misc.R

MatrixCombnR Documentation

Matrix Combinations

Description

Create matrices from combinations of columns

Usage

MatrixCombn(
  matrix,
  first.stem,
  last.stem = NULL,
  q.levels,
  rm.last = TRUE,
  row.means = TRUE
)

Arguments

matrix

matrix to combine

first.stem

first name of columns to use (e.g., "m" for mean)

last.stem

optional last name of columns to use (e.g., "p" for proportions) , Default: NONE

q.levels

number of levels per column

rm.last

logical, indicating whether or not to remove last combination (i.e., m1m2m3m4) , Default: TRUE

row.means

logical, indicating whether or not to compute row means from combined columns, else use row sums, Default: TRUE


bfw documentation built on March 18, 2022, 6:19 p.m.