Learn R Programming

MVTests (version 1.1)

Bsper: Bartlett's Sphericity Test

Description

Bsper function tests whether a correlation matrix is equal to the identity matrix or not.

Usage

Bsper(data)

Arguments

data

a data frame.

Value

a list with 4 elements:

ChiSquare

The value of Test Statistic

df

The Chi-Square statistic's degree of freedom

p.value

p value

R

Correlation matrix

Details

This function computes Bartlett's test statistic for Sphericity Test. The hypotheses are H0:R is equal to I and H1:R is not equal to I.

References

Tatlidil, H. (1996). Uygulamali Cok Degiskenli Istatistiksel Yontemler. Cem Web.

Examples

Run this code
# NOT RUN {
data(iris) 
results <- Bsper(data=iris[,1:4])
summary(results)
# }

Run the code above in your browser using DataLab