Course homepage:
https://homepages.tuni.fi/petri.nokelainen/mmx9120/

Some excellent lavaan tutorials:

SEM R lavaan exercise

In order to get started, please follow these instructions:

  1. Create a directory (folder) into your computer where you like to store the files needed in this exercise (e.g., "C:\temp\R_SEM").

  2. Download the R code for the lavaan exercise ("SEM_R.Rmd") and two data files below into the directory you have just created:
    2.1 R code SEM_R.Rmd
    2.2 HTML output SEM_R.html
    2.3 data 1 dfttu_sem.txt
    2.4 data 2 data1_csv.dat
    Extra R code simulateData.Rmd
    2.2 HTML output simulateData.html

  3. Use Windows "File Explorer" (or Mac "Finder" etc.) to browse into the directory where you just downloaded the three files. Check that they all are there.

  4. Double click to open "SEM_R.Rmd" file. This should get RStudio running - and now you can start the exercises!