Learn R Programming

parameters (version 0.8.5)

check_sphericity: Bartlett's Test of Sphericity

Description

Bartlett (1951) introduced the test of sphericity, which tests whether a matrix is significantly different from an identity matrix. This statistical test for the presence of correlations among variables, providing the statistical probability that the correlation matrix has significant correlations among at least some of variables. As for factor analysis to work, some relationships between variables are needed, thus, a significant Bartlett<U+2019>s test of sphericity is required, say p < .001.

Usage

check_sphericity(x, ...)

Arguments

x

A dataframe.

...

Arguments passed to or from other methods.

Value

A list of indices related to sphericity.

Details

This function is strongly inspired by the cortest.bartlett function in the psych package (Revelle, 2016). All credits go to its author.

References

  • Revelle, W. (2016). How To: Use the psych package for Factor Analysis and data reduction.

  • Bartlett, M. S. (1951). The effect of standardization on a Chi-square approximation in factor analysis. Biometrika, 38(3/4), 337-344.

Examples

Run this code
# NOT RUN {
library(parameters)
check_sphericity(mtcars)
# }

Run the code above in your browser using DataLab