MatrixCombn {bfw}R 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


[Package bfw version 0.4.1 Index]