expand_covs: Expand covariance matrices by a grid of variances for use in...

View source: R/compute_covs.R

expand_covsR Documentation

Expand covariance matrices by a grid of variances for use in mr.mash.

Description

Function to scale the covariance matrices by a grid of variances.

Usage

expand_covs(mats, grid, zeromat = TRUE)

Arguments

mats

a list of covariance matrices.

grid

scalar or numeric vector of variances of the effects.

zeromat

if TRUE, the no-effect matrix will be included.

Value

A list containing the scaled covariance matrices.


stephenslab/mr.mash.alpha documentation built on Feb. 7, 2025, 10:06 p.m.