Learn R Programming

edgeR (version 3.14.0)

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.

See Also

pnbinom, qnorm in the stats package.

Examples

Run this code
zscoreNBinom(c(0,10,100), mu=10, size=10)

Run the code above in your browser using DataLab