Log-likelihood ratio test for equality of two or more covariance matrices.
likel.cov(x, ina, a = 0.05)
A vector with the the test statistic, the p-value, the degrees of freedom and the critical value of the test.
A matrix containing Euclidean data.
A vector denoting the groups of the data.
The significance level, set to 0.05 by default.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Tthe hypothesis test is that of the equality of at least two covariance matrices:
Mardia K.V., Kent J.T. and Bibby J.M. (1979). Multivariate Analysis. London: Academic Press.
equal.cov, Mtest.cov
x <- as.matrix( iris[, 1:4] )
ina <- iris[, 5]
likel.cov(x, ina)
Run the code above in your browser using DataLab