Learn R Programming

mashr (version 0.2.79)

expand_cov: Create expanded list of covariance matrices expanded by grid

Description

This is an internal (non-exported) function. This help page provides additional documentation mainly intended for developers and expert users.

Usage

expand_cov(Ulist, grid, usepointmass = TRUE)

Value

This takes the covariance matrices in Ulist and multiplies them by the grid values If usepointmass is TRUE then it adds a null component.

Arguments

Ulist

a list of covarance matrices

grid

a grid of scalar values by which the covariance matrices are to be sc

usepointmass

if TRUE adds a point mass at 0 (null component) to the list