zscoreNBinom: Z-score Equivalents of Negative Binomial Deviate
Description
Compute z-score equivalents of negative binomial random deviates.
Usage
zscoreNBinom(q, size, mu)
Arguments
q
numeric vector or matrix giving negative binomial random values.
size
negative binomial size parameter (>0).
mu
mean of negative binomial distribution (>0).
Value
Numeric vector or matrix giving equivalent deviates from a standard normal distribution.
Details
This function computes the mid-p value of q, then converts to the standard normal deviate with the same cumulative probability distribution value.
Care is taken to do the computations accurately in both tails of the distributions.