R/psymet.R
morie_psymet_bartlett.Rd
Bartlett's test of sphericity.
morie_psymet_bartlett(data)
Numeric matrix or data.frame of items.
list with chisq, df, pval.
chisq
df
pval
set.seed(1) f <- rnorm(100) X <- sapply(1:5, function(j) sqrt(0.5) * f + sqrt(0.5) * rnorm(100)) colnames(X) <- paste0("i", 1:5) res <- morie_psymet_bartlett(X) res$pval #> [1] 6.164438e-23