Learn R Programming

MiSPU (version 1.0)

simulateData: OTU counts simulation

Description

We used a phylogenetic tree of OTUs from a real throat microbiome data set, which consists of 856 OTUs after discarding singleton OTUs. Then based on a complicate statistical meodel, we generated the OTU counts for each individual to simulate the feature of real microbiome data.

Usage

simulateData(nSam=100, s=12, ncluster = 20, mu = 1000, size = 25)

Arguments

nSam
Sample size, the default value is 100.
s
The indicator of informative cluster.
ncluster
Positive integer specifying the number of clusters of they phylogenetic tree.
mu
The mean of the negative binomial distribution.
size
The size of the negative binomial distribution

Value

A list object, including the informative OTU counts table and whole OTU counts table.

References

Chong, W., Pan, W. (2015) An Adaptive Association Test for Microbiome Data, submitted.

Examples

Run this code
OTU = simulateData()
OTU

Run the code above in your browser using DataLab