Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/DAFOT_function.R
DataGenerating
generate data from Dirichlet-multinomial distribution.
1 | DataGenerating(mP, mQ, alphaP, alphaQ, n)
|
mP |
an integer. The number of samples in the first group |
mQ |
an integer. The number of samples in the second group |
alphaP |
A vector of numeric. the parameter in Dirichlet distribution for the first group |
alphaQ |
A vector of numeric. the parameter in Dirichlet distribution for the second group |
n |
an integer. The number of reads drawn for each sample. |
This function is used to generate m distributions from Dirichlet, and draw samples from multinomial distribution.
DataGenerating
returns a list of two matrix of the raw data generated from Dirichlet-multinomial distribution.
Shulei Wang
1 2 3 | alphaP=rep(100,1)
alphaQ=rep(100,2)
DataGenerating(100,100,alphaP,alphaQ,10000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.