This checks whether the data is appropriate for Factor Analysis (FA) by running the Bartlett's Test of Sphericity and the Kaiser, Meyer, Olkin (KMO) Measure of Sampling Adequacy (MSA).

check_factorstructure(x, ...)

Arguments

x

A dataframe.

...

Arguments passed to or from other methods.

Value

A list of lists of indices related to sphericity and KMO.

See also

Examples

library(parameters)
check_factorstructure(mtcars)
#> # Is the data suitable for Factor Analysis?
#> 
#>   - KMO: The Kaiser, Meyer, Olkin (KMO) measure of sampling adequacy suggests that data seems appropriate for factor analysis (KMO = 0.83).
#>   - Sphericity: Bartlett's test of sphericity suggests that there is sufficient significant correlation in the data for factor analysis (Chisq(55) = 408.01, p < .001).