efa.diag: Calculate KMO and Bartlett' Tests of Sphericity

View source: R/efa.diag.R

efa.diagR Documentation

Calculate KMO and Bartlett' Tests of Sphericity

Description

A function that automates and simplifies the code to conduct the Kaiser-Meyer-Olkin (KMO) Test for Sampling Adequacy and Bartlett's Test of Sphericity. These tests determine the suitability of the data for Factor Analysis. The code for this function was taken from the notes created by Professor Mike Cheung's statistical module. Visit his website at http://mikewlcheung.github.io/.

Usage

efa.diag(data)

Arguments

data

A dataframe containing only the numeric variables to be included in the factor analysis.

Examples

library(psych)
library(lavaan)
efa.diag(HolzingerSwineford1939[,7:15])

Aaron0696/aaRon documentation built on July 27, 2023, 2:05 p.m.