DAFOT (version 0.0.1)

DataGenerating: Generate random data on tree

Description

DataGenerating generate data from Dirichlet-multinomial distribution.

Usage

DataGenerating(mP, mQ, alphaP, alphaQ, n)

Arguments

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.

Value

DataGenerating returns a list of two matrix of the raw data generated from Dirichlet-multinomial distribution.

Details

This function is used to generate m distributions from Dirichlet, and draw samples from multinomial distribution.

See Also

DAFOT

Examples

Run this code
# 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