cov_canonical {mashr} | R Documentation |
Compute a list of canonical covariance matrices
Description
Compute a list of canonical covariance matrices
Usage
cov_canonical(
data,
cov_methods = c("identity", "singletons", "equal_effects", "simple_het")
)
Arguments
data |
a mash data object, eg as created by |
cov_methods |
a vector of strings indicating the matrices to
be used: "identity" for the identity (effects are independent among
conditions); "singletons" for the set of matrices with just one
non-zero entry |
Details
The default is that this function computes covariance matrices corresponding to the "bmalite" models.
Value
a list of covariance matrices
Examples
data = mash_set_data(Bhat = cbind(c(1,2),c(3,4)), Shat = cbind(c(1,1),c(1,1)))
cov_canonical(data)
cov_canonical(data,"singletons")
cov_canonical(data,c("id","sing")) # can use partial matching of names