cov_flash {mashr} | R Documentation |
Perform Empirical Bayes Matrix Factorization using flashier, and return a list of candidate covariance matrices
Description
Perform Empirical Bayes Matrix Factorization using flashier, and return a list of candidate covariance matrices
Usage
cov_flash(
data,
factors = c("default", "nonneg"),
subset = NULL,
remove_singleton = FALSE,
tag = NULL,
output_model = NULL,
greedy_args = list(),
backfit_args = list()
)
Arguments
data |
A “mash” data object. |
factors |
If |
subset |
Data samples (rows) used to estimate the
covariances. Sset to |
remove_singleton |
If |
tag |
How to name the covariance matrices. |
output_model |
The fitted flash model will be saved to this file
(using |
greedy_args |
List containing additional parameters passed to
|
backfit_args |
List containing additional parameters passed
to |
Value
A list of covariance matrices.
Examples
# See https://stephenslab.github.io/mashr/articles/flash_mash.html
# for an example