WH.normal {fastmatrix} | R Documentation |
Wilson-Hilferty transformation for chi-squared variates
Description
Returns the Wilson-Hilferty transformation of random variables with chi-squared distribution.
Usage
WH.normal(x)
Arguments
x |
vector or matrix of data with, say, |
Details
Let be a random variable, where
denotes the squared Mahalanobis
distance defined as
Thus the Wilson-Hilferty transformation is given by
and is approximately distributed as a standard normal distribution. This
is useful, for instance, in the construction of QQ-plots.
References
Wilson, E.B., and Hilferty, M.M. (1931). The distribution of chi-square. Proceedings of the National Academy of Sciences of the United States of America 17, 684-688.
See Also
Examples
x <- iris[,1:4]
z <- WH.normal(x)
par(pty = "s")
qqnorm(z, main = "Transformed distances QQ-plot")
abline(c(0,1), col = "red", lwd = 2, lty = 2)
[Package fastmatrix version 0.5-772 Index]