View source: R/hoff_functions.R
zscores | R Documentation |
This function applies a quantile-quantile transformation to the data, resulting in a distribution that is approximately normal but has the same ranks as the original data.
zscores(y, ties.method = "average")
y |
A vector. |
ties.method |
The option |
A vector of the same length as y
.
Peter Hoff.
y <- rexp(100) z <- tensr:::zscores(y) par(mfrow = c(1, 3)) hist(y) hist(z) plot(y,z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.