Bcov | R Documentation |
Bcov
function tests whether the covariance matrix is equal to a
given matrix or not.
Bcov(data, Sigma)
data |
a data frame. |
Sigma |
The covariance matrix in NULL hypothesis. |
This function computes Bartlett's test statistic for the covariance matrix of one sample.
a list with 3 elements:
ChiSquare |
The value of Test Statistic |
df |
The Chi-Square statistic's degree of freedom |
p.value |
p value |
Hasan BULUT <hasan.bulut@omu.edu.tr>
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.