efa.diag | R Documentation |
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/.
efa.diag(data)
data |
A dataframe containing only the numeric variables to be included in the factor analysis. |
library(psych)
library(lavaan)
efa.diag(HolzingerSwineford1939[,7:15])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.