make_qmat: Create association pattern matrix

Description Usage Arguments Value

View source: R/density_estimation.R

Description

Make matrix denoting association patterns (Q) that indicates null/alternative densities in the association patterns.

Usage

1
make_qmat(grp, name_cols = FALSE)

Arguments

grp

vector of group/study identifiers (common to use seq(1,d), for d groups/studies).

name_cols

logical indicating whether to name columns using group/study identifiers.

Value

A matrix with all binary combinations of the groups. The value in row k and column j denotes whether statistics from study j come from the null (0) or alternative (1) distribution under the k-th association pattern.


kjgleason/primo documentation built on Sept. 7, 2021, 5:21 p.m.