LNM.Simulation: Logistical Normal Multinomial Distribution Simulation

Usage Arguments Details Value Author(s) References Examples

Usage

1
LNM.Sim(p, seed, N, dif)

Arguments

p

OTU numbers

seed

random seeds

N

sample size

dif

the differential OTU

Details

Return one count matrix of leaves and internal nodes which colnames corresponds to the tree.

Value

One count matrix

Author(s)

Chou ZHOU

References

Xia, Fan, et al. "A logistic normal multinomial regression model for microbiome compositional data analysis." Biometrics 69.4 (2013): 1053-1063.

Examples

1
2
3
4
5
6
7
8
p <- 10
dif <- c(2,3)

data <- LNM.Sim(p, seed =1, N =10 , dif)
dim(data)

OTU.dif <- data[, colnames(daya) == dif]
boxplot(OTU.dif[1:N, 1], OTU.dif[-c(1:N), 1])

ZRChao/LRTT documentation built on May 17, 2019, 6:36 p.m.