BoxM function tests whether the covariance matrices of independent
samples are equal or not.
Usage
BoxM(data, group)
Arguments
data
a data frame.
group
grouping vector.
Value
a list with 3 elements:
ChiSquare
The value of Test Statistic
df
The Chi-Square statistic's degree of freedom
p.value
p value
Details
This function computes Box-M test statistic for the covariance matrices of independent samples.
The hypotheses are defined as H0:The Covariance matrices are homogeneous and
H1:The Covariance matrices are not homogeneous
References
Rencher, A. C. (2003). Methods of multivariate analysis (Vol. 492). John Wiley & Sons.