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

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.