gen_negbin_counts: Randomly generate and add negative binomial counts to a table.
Description
This function randomly generates counts from a negative binomial distribution
according to the parameters on each row of the input data.table, and
adds the counts to a new column count.
Usage
gen_negbin_counts(table)
Arguments
table
A data.table with at least the columns mu and
theta. The parameter \(\theta\) (theta) is the same as
size in rnbinom.