cov_canonical | R Documentation |
Compute a list of canonical covariance matrices
cov_canonical(
data,
cov_methods = c("identity", "singletons", "equal_effects", "simple_het")
)
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 |
The default is that this function computes covariance matrices corresponding to the "bmalite" models.
a list of covariance matrices
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.