sim.counts: Dirichlet-multinomial counts simulation

Description Usage Arguments Details

Description

Simulates counts according to a Dirichlet-multinomial model, according to model parameters given by object dm.fit.

Usage

1
sim.counts(dm.fit, ls, remove.zero.rows = FALSE)

Arguments

dm.fit

dirmult object. Alternatively, a list object with at least gamma object, corresponding to parameters of a Dirichlet distribution

ls

vector of library sizes of samples to be generated

remove.zero.rows

whether or not to remove rows of all zeroes

Details

Simulates a single set of counts, generated according to the parameters in object dm.fit. Requires package dirmult to generate samples.


ldiao/Gimp documentation built on May 20, 2019, 11:29 p.m.