zscore {limma} | R Documentation

## z-score equivalents

### Description

Compute z-score equivalents of for gamma or t-distribution random deviates.

### Usage

    zscoreGamma(q, shape, rate = 1, scale = 1/rate)
    zscoreT(x, df)

### Arguments

`q, x` | numeric matrix for vector giving deviates of a random variaable
`shape` | gamma shape parameter
`rate` | gamma rate parameter
`scale` | gamma scale parameter
`df` | degrees of freedom

### Details

This function computes the deviates of a standard normalization distribution which have the same quantiles as the given values in the specified distribution. For example, if `z <- zscoreT(x,df=df)` then `pnorm(z)` equals `pt(x,df=df)`.

Care is taken to do the computations accurately in both tails of the distributions.

### Value

Numeric vector giving equivalent deviates from a standard normal distribution.

### Author(s)

Gordon Smyth

### See Also

`qnorm`, `pgamma`, `pt`

### Examples

    zscoreGamma(1, shape=1, scale=1)
    zscoreT(0, df=3)

[Package Contents]