# lavaan

> Structural equation modeling and latent variable analysis in R

Source: https://talira.ai/catalog/lavaan-end3ve68
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / statistics](https://talira.ai/categories/libraries/math/statistics), [languages / r](https://talira.ai/categories/languages/r)
- Licence: GPL-2.0-or-later[^1]
- Pricing: Free and open source[^1][^2]
- Pricing notes: Free and open source (GPL-2.0-or-later); the project takes donations.
- Free tier: yes[^1][^2]
- Backed by: [The lavaan project](https://talira.ai/orgs/lavaan-project.md)

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.

## Links

- Website: https://lavaan.org/
- GitHub: https://github.com/yrosseel/lavaan
- Docs: https://lavaan.org/

## 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

## Trust

Overall: 0.59 out of 1.
Signals: maintenance 1.00, adoption 0.54, momentum 0.17, community 0.65, backing 0.30, extensibility 0.00.

- last commit yesterday
- 237 commits in the last 90 days
- 519 GitHub stars
- 40 contributors
- backed by The lavaan project

## Alternatives

- [psych](https://talira.ai/catalog/psych-jdyvwcd6.md): R toolbox for psychometrics, personality and psychological research

## Sources

[^1]: https://github.com/yrosseel/lavaan/blob/master/DESCRIPTION (checked 29 Nov 2026)
[^2]: https://lavaan.org/ (checked 29 Nov 2026)
