powered by
DataGenerating generate data from Dirichlet-multinomial distribution.
DataGenerating
DataGenerating(mP, mQ, alphaP, alphaQ, n)
an integer. The number of samples in the first group
an integer. The number of samples in the second group
A vector of numeric. the parameter in Dirichlet distribution for the first group
A vector of numeric. the parameter in Dirichlet distribution for the second group
an integer. The number of reads drawn for each sample.
DataGenerating returns a list of two matrix of the raw data generated from Dirichlet-multinomial distribution.
This function is used to generate m distributions from Dirichlet, and draw samples from multinomial distribution.
DAFOT
# NOT RUN { alphaP=rep(100,1) alphaQ=rep(100,2) DataGenerating(100,100,alphaP,alphaQ,10000) # }
Run the code above in your browser using DataLab