DataGenerating: Generate random data on tree

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/DAFOT_function.R

Description

DataGenerating generate data from Dirichlet-multinomial distribution.

Usage

1
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.

Details

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

Value

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

Author(s)

Shulei Wang

See Also

DAFOT

Examples

1
2
3
alphaP=rep(100,1)
alphaQ=rep(100,2)
DataGenerating(100,100,alphaP,alphaQ,10000)

DAFOT documentation built on Oct. 9, 2019, 5:04 p.m.

Related to DataGenerating in DAFOT...