Last chance! 50% off unlimited learning
Sale ends in
mvgls
The quantile-quantile plots of the Chi square distribution is used to assess multivariate normality and detect outliers using the squared Mahalanobis distances from the models residuals.
mvqqplot(object, conf=0.95, ...)
A model fit obtained by the mvgls
function.
Confidence interval for the approximate envelope. Default is 0.95.
Graphical options.
a list with components
the squared Mahalanobis distances (standardized)
the chi squared quantiles
The empirical quantiles of standardized Mahalanobis distances (Caroni 1987) estimated from models fit by mvgls
are compared to the quantiles of a Chi square distribution with 'p' degrees of freedom (where 'p' is the number of dimensions) when models are fit by maximum likelihood (method='LL'
). For penalized likelihood model fit (regularized covariance), a matching moments method is used to map the standardized Mahalanobis distances to the Chi square distribution (Clavel, in prep.).
Caroni, C. 1987. Residuals and Influence in the multivariate linear model. Journal of the Royal Statistical Society 36(4): 365-370.
Clavel, J., Aristide, L., Morlon, H., 2019. A Penalized Likelihood framework for high-dimensional phylogenetic comparative methods and an application to new-world monkeys brain evolution. Systematic Biology 68(1): 93-116.
Clavel, J., Morlon, H. 2020. Reliable phylogenetic regressions for multivariate comparative data: illustration with the MANOVA and application to the effect of diet on mandible morphology in phyllostomid bats. Systematic Biology 69(5): 927-943.
# NOT RUN {
data(phyllostomid)
# Fit a linear model by PL
fit <- mvgls(mandible~grp1, data=phyllostomid, phyllostomid$tree, model="lambda", method="PL")
# QQ plots
mvqqplot(fit, lty=2, conf=0.99)
# }
Run the code above in your browser using DataLab