powered by
Bcov function tests whether the covariance matrix is equal to a given matrix or not.
Bcov
Bcov(data, Sigma)
a list with 3 elements:
The value of Test Statistic
The Chi-Square statistic's degree of freedom
p value
a data frame.
The covariance matrix in NULL hypothesis.
Hasan BULUT <hasan.bulut@omu.edu.tr>
This function computes Bartlett's test statistic for the covariance matrix of one sample.
Rencher, A. C. (2003). Methods of multivariate analysis (Vol. 492). John Wiley & Sons.
data(iris) S<-matrix(c(5.71,-0.8,-0.6,-0.5,-0.8,4.09,-0.74,-0.54,-0.6, -0.74,7.38,-0.18,-0.5,-0.54,-0.18,8.33),ncol=4,nrow=4) result <- Bcov(data=iris[,1:4],Sigma=S) summary(result)
Run the code above in your browser using DataLab