Learn R Programming

mashr (version 0.2.79)

cov_from_factors: produce list of rank-1 covariance matrices corresponding to rows of f

Description

produce list of rank-1 covariance matrices corresponding to rows of f

Usage

cov_from_factors(f, name)

Value

a list of rank one matrices whose kth element is f[k,] f[k,]' and named name_k

Arguments

f

a matrix of factors (each row is a factor)

name

a string indicating the name to use