Reduce the size of Poisson-like counts by binomial thinning.
numeric vector or array of non-negative integers.
numeric scalar or vector of same length as
integer scale or vector of the same length as
prob is not
NULL, then this function calls
prob=prob to generate the new counts.
This is classic binomial thinning.
The new column sums are random, with expected values determined by
NULL, then this function does multinomial thinning of the counts to achieve specified column totals.
The default behavior is to thin the columns to have the same column sum, equal to the smallest column sum of
If the elements of
x are Poisson, then binomial thinning produces new Poisson random variables with expected values reduced by factor
If the elements of each column of
x are multinomial, then multinomial thinning produces a new multinomial observation with a reduced sum.
A vector or array of the same dimensions as
x, with thinned counts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.