View source: R/SparseDOSSA2_fit.R
fit_SparseDOSSA2 | R Documentation |
fit_SparseDOSSA2
fits the SparseDOSSA 2 model (zero-inflated log normal
marginals connected through Gaussian copula) to microbial abundances. It takes
as input a feature-by-sample microbial count or relative abundance table and
a penalization tuning parameter lambda
to control the sparsity of
feature-feature correlations. It then adopts a penalized expectation-maximization
algorithm to provide estimations of the model parameters.
fit_SparseDOSSA2(data, lambda = 1, control = list())
data |
feature-by-sample matrix of abundances (proportions or counts) |
lambda |
positive penalization parameter for the sparsity of feature-feature
correlations. Default to maxmum value |
control |
a named list of additional control parameters. See help page for
|
a list, with the following components:
list of fitted parameters from the EM algorithm.
fitted parameters for the joint distribution of per-feature prevalence, abundance, and variability parameters (for simulating new features)
fitted parameters for the read depth distribution. Only applicable to count data.
list of quality control filtering for sample and features.
Siyuan Ma, syma.research@gmail.com
data("Stool_subset")
fitted <- fit_SparseDOSSA2(data = Stool_subset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.