\Header{zscore}{z-score equivalents}
\alias{zscoreGamma}{zscore}
\alias{zscoreT}{zscore}
\keyword{distribution}{zscore}
\begin{Description}\relax
Compute z-score equivalents of for gamma or t-distribution random deviates.
\end{Description}
\begin{Usage}
\begin{verbatim}
zscoreGamma(q, shape, rate = 1, scale = 1/rate) 
zscoreT(x, df)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{q, x}] numeric matrix for vector giving deviates of a random variaable
\item[\code{shape}] gamma shape parameter
\item[\code{rate}] gamma rate parameter
\item[\code{scale}] gamma scale parameter
\item[\code{df}] degrees of freedom
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
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 \code{z <- zscoreT(x,df=df)} then \code{pnorm(z)} equals \code{pt(x,df=df)}.

Care is taken to do the computations accurately in both tails of the distributions.\end{Details}
\begin{Value}
Numeric vector giving equivalent deviates from a standard normal distribution.\end{Value}
\begin{Author}\relax
Gordon Smyth
\end{Author}
\begin{SeeAlso}\relax
\code{\Link{qnorm}}, \code{\Link{pgamma}}, \code{\Link{pt}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
zscoreGamma(1, shape=1, scale=1)
zscoreT(0, df=3)
\end{ExampleCode}
\end{Examples}

