Returns the Wilson-Hilferty transformation of random variables with
WH.student(x, center, cov, eta = 0)
object of class 'studentFit'
from which is extracted the estimated Mahalanobis distances of the fitted model.
Also x
can be a vector or matrix of data with, say,
mean vector of the distribution or second data vector of length x
have class 'studentFit'
.
covariance matrix (x
have class 'studentFit'
.
shape parameter of the multivariate t-distribution. By default the multivariate normal (eta = 0
) is considered.
Let
Thus the Wilson-Hilferty transformation is given by
For eta = 0
, we obtain
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 107, 785-813.
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.
cov
, mahalanobis
, envelope.student
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)
Run the code above in your browser using DataLab