View source: R/SparseDOSSA2_fit.R
fitCV_SparseDOSSA2 | R Documentation |
fitCV_SparseDOSSA2
randomly partitions the data into fitting and testing
subsets. It fits the SparseDOSSA 2 model to the fitting sets and uses log likelihood
of the fitted parameters in the testing sets as the criteria for selection of
tuning parameter lambda.
fitCV_SparseDOSSA2(
data,
lambdas = 10^seq(-2, 0, length.out = 5),
K = 5,
control = list()
)
data |
feature-by-sample matrix of abundances (proportions or counts). |
lambdas |
vector of positive penalization parameters for the sparsity of feature-feature correlations. The function fits SparseDOSSA 2 models to each of the lambda values, and uses cross validation likelihood to select the optimal one. If not provided this will be chosen automatically. |
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, with additional cross validation likelihood.
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 <- fitCV_SparseDOSSA(data = Stool_subset,
lambdas = c(0.1, 1),
K = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.