Getting started

Install R

lavaan is implemented as an R package. This means that before installing lavaan, you should have installed a recent version (>= 4.0.0) of R. You can download the latest version of R from the R-project website.

Install lavaan

Once you have installed R, you can install the lavaan package simply by starting up R, and typing

install.packages("lavaan", dependencies = TRUE)

To check if the installation was succesful, you can load the lavaan package and try one of the examples. For example:


If you can see the output, everything is set up and ready.

Getting Started

Now that you have installed lavaan, you can:

  • read the lavaan tutorial; either online or as a PDF
  • read the lavaan paper
  • have a look at the teaching materials, code examples and more at the Resources page.