talira

Structural equation modeling and latent variable analysis in R

open sourceGPL-2.0-or-laterfree

lavaan is a free, open source R package for latent variable modeling: path analysis, confirmatory factor analysis, structural equation modeling and growth curve models. You write the model in its compact model syntax and fit it with cfa(), sem() or the low-level lavaan() function, and it reports fit measures, modification indices and standardized solutions. It supports multiple groups and meanstructures, many estimators (ML and its robust variants, GLS, WLS, DWLS, ULS, PML), FIML for missing data, categorical data, and can partly mimic the commercial package Mplus.

Problems it solves

  • fit a structural equation model in R without paying for Mplus
  • run a confirmatory factor analysis on my survey items
  • test measurement invariance across groups in R

Features

  • lavaan model syntax for latent variables, regressions and covariances
  • cfa(), sem() and the low-level lavaan() fitting functions
  • ML, robust ML, GLS, WLS, DWLS, ULS and pairwise ML estimators
  • robust and bootstrap standard errors and test statistics
  • FIML for missing data
  • binary, ordinal and continuous observed variables
  • mimic = "Mplus" to partly reproduce Mplus results

Alternatives

The same job

These do what lavaan does.

  1. psych R toolbox for psychometrics, personality and psychological research

Compare lavaan with the top 3