zscoreNBinom {edgeR} | R Documentation

## 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).

### 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.

Non-integer values of `q` are allowed and handled by interpolation.

### Value

Numeric vector or matrix giving equivalent deviates from a standard normal distribution.

### Author(s)

Gordon Smyth

### See Also

`pnbinom`, `qnorm` in the stats package.

### Examples

    zscoreNBinom(c(0,10,100), mu=10, size=10)

[Package edgeR version 3.24.3 Index]