create_cov_canonical: Compute List of Canonical Covariance Matrices

View source: R/mash.R

create_cov_canonicalR Documentation

Compute List of Canonical Covariance Matrices

Description

This function computes canonical covariance matrices to be provided to mash.

Usage

create_cov_canonical(R, singletons = TRUE, hetgrid = seq(0, 1, 0.25))

Arguments

R

Integer specifying the number of conditions.

singletons

TRUE or FALSE indicating whether the singleton matrices are computed.

hetgrid

A vector of numbers between -1 and 1, each representing the off-diagonal elements of matrices with 1s on the diagonal. If 0 is included, the identity matrix will be returned which corresponds to assuming effects are independent across conditions. IF hetgrid = NULL, these matrices are not returned.

Value

A list of canonical covariance matrices.

Examples

mvsusieR:::create_cov_canonical(3)
mvsusieR:::create_cov_canonical(3,singletons = FALSE)
mvsusieR:::create_cov_canonical(3,hetgrid = NULL)


gaow/mmbr documentation built on April 3, 2024, 6:50 a.m.