Uploaded January 2023 | Updated September 2026, 2 weeks ago
In this video, I provide a walk-through of how to perform a test of a second-order factor analysis using the lavaan package in R Studio. I begin the video with a discussion of the difference between a first order factor model and a second order factor model. I proceed to demonstrate how to run the analyses using syntax in lavaan.
A copy of the syntax file used in the video can be downloaded here:
drive.google.com/file/d/1KeiOiAO2RqLk0pqDRT6kj0opmwlcU4T5/view
Be sure to check out my online sites at:
drmcstats.net
sites.google.com/view/statistics-for-the-real-world/home
In this video, I provide a walk-through of how to perform a test of a second-order factor analysis using the lavaan package in R Studio. I begin the video with a discussion of the difference between a first order factor model and a second order factor model. I proceed to demonstrate how to run the analyses using syntax in lavaan.
A copy of the syntax file used in the video can be downloaded here:
drive.google.com/file/d/1KeiOiAO2RqLk0pqDRT6kj0opmwlcU4T5/view
Be sure to check out my online sites at:
drmcstats.net
sites.google.com/view/statistics-for-the-real-world/home






![Multilevel path analysis using lavaan and RStudio (video 1: includes test of Level 2 mediation)
This video provides a demonstration of multilevel path analysis using an example from Heck and Thomas (2015) book, An introduction to multilevel modeling techniques: MLM and SEM approaches using MPLUS. [See my next video in the series here: https://youtu.be/mayQ79h_Dt8. ]
A copy of the .csv file containing the data can be downloaded here:
https://drive.google.com/file/d/1FU6kzwtPum6UHMqj-gdkpHpSq1yMQ1bd/view
You can download a copy of the basic syntax I use in this video here:
https://drive.google.com/file/d/1Yt7COMLa0uZzjfDNfDNcY_BpTDWAsMLy/view Multilevel path analysis using lavaan and RStudio (video 1: includes test of Level 2 mediation)](https://i.ytimg.com/vi/jaZtRgBJ_Tk/mqdefault.jpg)



