Last updated 2020-07-30.
This Github repo contains all lesson files used in the graduate-level course: Structural Equation Modeling foR Psychologists - Practical Applications in R, taught at Ben-Gurion University on the Negev (spring 2019 semester). This course assumes basic competence in R (importing, regression modeling, plotting, etc.), a long the lines of the prerequisite course, Advanced Research Methods foR Psychologists.
The goal is to impart students with the basic tools to construct,
evaluate and compare Structural Equation Models (SEM; w/ plots), using
lavaan
.
Notes:
- This repo contains only materials relating to Practical Applications in R, and does not contain any theoretical or introductory materials.
- Please note that some code does not work on purpose, to force students to learn to debug.
You will need:
- A fresh installation of
R
(preferably version 3.6 or above). - RStudio IDE (optional, but recommended).
- The following packages, listed by lesson:
You can install all the packages used by running:
# in alphabetical order:
pkgs <- c(
"bayestestR", "car", "dplyr", "lavaan", "lavaanPlot", "nFactors",
"parameters", "psych", "psychTools", "semPlot", "semTools", "tidyr"
)
install.packages(pkgs, dependencies = TRUE)
The package versions used here:
## bayestestR car dplyr lavaan lavaanPlot nFactors
## "0.7.2" "3.0-8" "1.0.0" "0.6-6" "0.5.1" "2.4.1"
## parameters psych psychTools semPlot semTools tidyr
## "0.8.2" "1.9.12.31" "1.9.12" "1.1.2" "0.5-3" "1.1.0"
lavaan
toutorials.- Sacha Epskamp’s online course and YouTube lectures.
- Michael Hallquist’s course.