WH.student {MVT} | R Documentation |
Wilson-Hilferty transformation
Description
Returns the Wilson-Hilferty transformation of random variables with distribution.
Usage
WH.student(x, center, cov, eta = 0)
Arguments
x |
object of class |
center |
mean vector of the distribution or second data vector of length |
cov |
covariance matrix ( |
eta |
shape parameter of the multivariate t-distribution. By default the multivariate normal ( |
Details
Let the following 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.
For eta = 0
, we obtain
which is the Wilson-Hilferty transformation for chi-square variables.
References
Osorio, F., Galea, M., Henriquez, C., Arellano-Valle, R. (2023). Addressing non-normality in multivariate analysis using the t-distribution. AStA Advances in Statistical Analysis. doi: 10.1007/s10182-022-00468-2
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
data(companies)
x <- companies
z <- WH.student(x, center = colMeans(x), cov = cov(x))
par(pty = "s")
qqnorm(z, main = "Transformed distances Q-Q plot")
abline(c(0,1), col = "red", lwd = 2)