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.


mr.mashr documentation built on Jan. 7, 2026, 9:06 a.m.