boxMtest | R Documentation |
Performs Box's M-test for homogeneity of covariance matrices derived from multivariate normality data according to a single classification factor. This test is based on the chi-square approximation.
boxMtest(data,
group)
data |
A numeric matrix or data frame. |
group |
In either vector or factor form, the length of the group must correspond to the number of observations |
M.stat |
Box's M-test statistic approximates the chi-square distribution. |
df |
The degree of freedom is related to the test statistic. |
p.value |
The p-value of the test statistic. |
mardiatest
data(wine)
class <- wine$class
winedata <- subset(wine, select = -class)
boxMtest(winedata, class)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.