Plotting differences in persons' factor scores
Factor loadings aren't the only parameters that differ between EFA and CFA results. Individuals' factor scores also differ when they are calculated from the EFA or CFA parameters. To illustrate this, we'll look at how factor scores for individuals in the bfi_EFA
dataset differ when they are calculated from the EFA model versus from the CFA model by examining those scores' density plots.
Este exercício faz parte do curso
Factor Analysis in R
Instruções do exercício
- First, save the scores from the
scores
named list element from theEFA_model
object into a new object. Since this model was created from thebfi_EFA
dataset, the factor scores are from that dataset. - Next, use
fscores()
to calculate and extract individuals' factor scores using the CFA model object with the samebfi_EFA
dataset. - Finally, use the
plot()
andlines()
functions to graph the densities of the individuals' factor scores on the first factor.
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
# Extracting factor scores from the EFA model
EFA_scores <- EFA_model$___
# Calculating factor scores by applying the CFA parameters to the EFA dataset
CFA_scores <- fscores(EFA_CFA, data = ___)
# Comparing factor scores from the EFA and CFA results from the bfi_EFA dataset
___(density(___[,1], na.rm = TRUE),
xlim = c(-3, 3), ylim = c(0, 1), col = "blue")
___(density(___[,1], na.rm = TRUE),
xlim = c(-3, 3), ylim = c(0, 1), col = "red")