R/data2cov.R
cov_flash.Rd
Perform Empirical Bayes Matrix Factorization using flashier, and return a list of candidate covariance matrices
A “mash” data object.
If factors = "default"
, the factors and
loadings are both unconstrained. If factors = "nonneg"
, the
factors are constrained to be non-negative, and the loadings are
unconstrained.
Data samples (rows) used to estimate the
covariances. Sset to NULL
to use all the data.
If remove_singleton = TRUE
, factors
corresponding to singleton matrices will be removed from the output.
How to name the covariance matrices.
The fitted flash model will be saved to this file
(using saveRDS
).
List containing additional parameters passed to
flashier::flash_greedy
.
List containing additional parameters passed
to flashier::flash_backfit
.
A list of covariance matrices.
# See https://stephenslab.github.io/mashr/articles/flash_mash.html
# for an example