It performs the Box's M-test for homogeneity of covariance matrices
obtained from multivariate normal data according to one classification
factor. The test is based on the chi-square approximation.
Usage
boxM(data, grouping)
Arguments
data
a numeric data.frame or matrix containing n observations of p variables;
it is expected that n > p.
grouping
a vector of length n containing the class of each observation;
it is usualy a factor.
Value
A list of
cova list containing the within covariance matrix for each level of grouping.
pooledthe pooled covariance matrix.
logDeta vector containing the natural logarithm of each matrix in cov.
chian approximated value of the chi-square distribution.
dfthe number of degrees of freedom related to chi.