zscoreNBinom {edgeR} | R Documentation |
Compute z-score equivalents of negative binomial random deviates.
zscoreNBinom(q, size, mu)
q |
numeric vector or matrix giving negative binomial random values. |
size |
negative binomial size parameter (>0). |
mu |
mean of negative binomial distribution (>0). |
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.
Non-integer values of q
are allowed and handled by interpolation.
Numeric vector or matrix giving equivalent deviates from a standard normal distribution.
Gordon Smyth
pnbinom
, qnorm
in the stats package.
zscoreNBinom(c(0,10,100), mu=10, size=10)