Although the specific target audience for this tutorial is graduate students in statistics classes at the University at Albany, the document can be of general help to other students and researchers looking to implement confirmatory factor analysis with R.
The data set and the models evaluated are those used by James Boswell in his APSY613 Multivariate Analysis class in the Psychology Department at the University at Albany. The data set is the WISC-R data set that the multivariate statistics textbook by the Tabachnick textbook (Tabachnick, Fidell, & Ullman, 2019) employs for confirmatory factor analysis illustration. The goal of this document is to outline rudiments of Confirmatory Factor Analysis strategies implemented with three different packages in R. The illustrations here attempt to match the approach taken by Boswell with SAS. The document is targeted to UAlbany graduate students who have already had instruction in R in their introductory statistics courses.
Allaire, J., & Dervieux, C. (2024).
Quarto: R interface to ’quarto’ markdown publishing system. Retrieved from
https://CRAN.R-project.org/package=quarto
Allaire, J., Xie, Y., McPherson, J., Luraschi, J., Ushey, K., Atkins, A., … Iannone, R. (2018).
Rmarkdown: Dynamic documents for r. Retrieved from
https://CRAN.R-project.org/package=rmarkdown
Boker, S. M., Neale, M. C., Maes, H. H., Spiegel, M., Brick, T. R., Estabrook, R., … Kirkpatrick, R. M. (2019).
OpenMx: Extended structural equation modelling. Retrieved from
https://CRAN.R-project.org/package=OpenMx
Epskamp, S., & Simon Stuber, with contributions from. (2017).
semPlot: Path diagrams and visual analysis of various SEM packages’ output. Retrieved from
https://CRAN.R-project.org/package=semPlot
Fox, J., Nie, Z., & Byrnes, J. (2017).
Sem: Structural equation models. Retrieved from
https://CRAN.R-project.org/package=sem
Fox, J., Weisberg, S., & Price, B. (2018).
Car: Companion to applied regression. Retrieved from
https://CRAN.R-project.org/package=car
Korkmaz, S., Goksuluk, D., & Zararsiz, G. (2018).
MVN: Multivariate normality tests. Retrieved from
https://CRAN.R-project.org/package=MVN
R Core Team. (2018).
R: A language and environment for statistical computing. Vienna, Austria: R Foundation for Statistical Computing. Retrieved from
https://www.R-project.org/
Revelle, W. (2019).
Psych: Procedures for psychological, psychometric, and personality research. Retrieved from
https://CRAN.R-project.org/package=psych
Rosseel, Y. (2018).
Lavaan: Latent variable analysis. Retrieved from
https://CRAN.R-project.org/package=lavaan
RStudio Team. (2015).
RStudio: Integrated development environment for r. Boston, MA: RStudio, Inc. Retrieved from
http://www.rstudio.com/
Tabachnick, B. G., Fidell, L. S., & Ullman, J. B. (2019). Using multivariate statistics (Seventh edition., pp. pages cm). Book, Boston: Pearson.
Xie, Y. (2015).
Dynamic documents with R and knitr (2nd ed.). Boca Raton, Florida: Chapman; Hall/CRC. Retrieved from
http://yihui.name/knitr/
Xie, Y. (2018).
Knitr: A general-purpose package for dynamic report generation in r. Retrieved from
https://CRAN.R-project.org/package=knitr