library(lavaan)
unrotated <- efaUnrotate(HolzingerSwineford1939, nf=3, varList=paste0("x", 1:9), estimator="mlr")
# Orthogonal varimax
out.varimax <- orthRotate(unrotated, method="varimax")
summary(out.varimax, sort=FALSE, suppress=0.3)
## Not run:
# # Orthogonal Quartimin
# orthRotate(unrotated, method="quartimin")
#
# # Oblique Quartimin
# oblqRotate(unrotated, method="quartimin")
#
# # Geomin
# oblqRotate(unrotated, method="geomin")
#
# # Target rotation
# library(GPArotation)
# target <- matrix(0, 9, 3)
# target[1:3, 1] <- NA
# target[4:6, 2] <- NA
# target[7:9, 3] <- NA
# colnames(target) <- c("factor1", "factor2", "factor3")
# # This function works with GPArotation version 2012.3-1
# funRotate(unrotated, fun="targetQ", Target=target)
# ## End(Not run)
Run the code above in your browser using DataLab