data("CCAI", package = "GPArotation")
fa.un <- factanal(factors = 3, covmat = CCAI_R, n.obs = 461,
rotation = "none")
res.tan <- tandemI(fa.un)
res.ob <- oblimin(fa.un)
# Simple structure measures shown automatically in print
# Orthogonal: SS loadings, Proportion Var, Cumulative Var, AUC, FSI
print(res.tan)
# Oblique: SS loadings, AUC, FSI, Phi
print(res.ob)
# Summary adds overall measures: Hoffman, Gini, Bentler, hyperplane
summary(res.tan)
summary(res.ob)
# Direct access for custom analyses
GPArotation:::calc_AUC(res.ob)
GPArotation:::calc_FSI(res.ob)
GPArotation:::calc_simplicity(res.ob)
GPArotation:::calc_hyperplane(res.ob)
# Stricter hyperplane cutoff
GPArotation:::calc_hyperplane(res.ob, cutoff = 0.05)
# Compare simple structure across rotation methods
auc.tan <- GPArotation:::calc_AUC(res.tan)$AUC_mean
auc.ob <- GPArotation:::calc_AUC(res.ob)$AUC_mean
fsi.tan <- GPArotation:::calc_FSI(res.tan)$FSI_mean
fsi.ob <- GPArotation:::calc_FSI(res.ob)$FSI_mean
cat(paste0(formatC("Tandem I", width = 10, flag = "-"),
" AUC: ", round(auc.tan, 3),
" FSI: ", round(fsi.tan, 3), "\n"))
cat(paste0(formatC("Oblimin", width = 10, flag = "-"),
" AUC: ", round(auc.ob, 3),
" FSI: ", round(fsi.ob, 3), "\n"))
Run the code above in your browser using DataLab