Fit Dirichlet-Multinomial models to count data.
dmn.Rd
Fit Dirichlet-Multinomial models to a sample x taxon count matrix.
Usage
dmn(count, k, verbose = FALSE, seed = runif(1, 0, .Machine$integer.max))
Arguments
- count
matrix()
of sample x taxon counts.- k
integer(1)
, the number of Dirichlet components to fit.- verbose
logical(1)
indicating whether progress in fit should be reported.- seed
numeric(1)
random number seed.
Details
This implements Dirichlet-multinomial mixture models describe in the package help page, DirichletMultinomial-package.
Value
An object of class dmn
, with elements (elements are usually
retrieved via functions defined in the package, not directly).
- GoodnessOfFit
NLE, LogDet, Laplace, AIC, and BIC criteria assessing goodness-of-fit.
- Group
matrix
of dimension samples xk
, providing the Dirichlet parameter vectors.- Mixture
- Weight
numeric()
of lengthk
, with relative weight of each component.
- Fit
References
Holmes I, Harris K, Quince C, 2012 Dirichlet Multinomial Mixtures: Generative Models for Microbial Metagenomics. PLoS ONE 7(2): e30126. doi:10.1371/journal.pone.0030126.
Author
Martin Morgan mailto:mtmorgan.xyz@gmail.com