Latent Variable Analysis
Overview
Fit a variety of latent variable models, including confirmatory factor analysis, structural equation modeling and latent growth curve models.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 70
- Examples that run
- 95%62 run in a plain check · 3 never run
- Exported functions with examples
- 95%
- Documented parameters
- 94%
- Return-value docs
- 65%
- Help pages citing references
- 41%
Downloads
Repository
- PRs merged (all time)
- 91%
- Median days to close, 50 most recently updated closed issues
- 46
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
Commit identities over time
5 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/yrosseel/lavaan on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-03-17Named in .Rbuildignore: .claude, CLAUDE.mdNamed in .gitignore: .claude, CLAUDE.mdCommits: at least 432 crediting it in the message
- Claude Opus 4.899 commits · Jun 2026
- Claude Fable 515 commits · Aug to Sep 2026
- Claude Sonnet 4.61 commit · Jun 2026
Some of these counts are a minimum, because the search stopped before the oldest commits.
Dependencies
Installing lavaan adds 4 packages (3 with compiled code, 180 KB of source tarballs). Heaviest: numDeriv 74 KB, mnormt 63 KB, quadprog 35 KB.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 117 more dependents and 64 packages that suggest it on CRAN ↗
Code & Tests
Datasets
People & History
Show 6 more contributorsHide 6 contributors
Show 5 peopleHide 5 people
Pick two releases to compare their code metrics.
- 0.7-3Latest
- 0.7-22026-07-16 · diff ↗ ·
added 60 exports
lav_parse_options, lavEffects, lavResidualsY, lav_mat_dup_ginv_pre_post, lav_mat_ortho_complement, lav_func_grad_complex, lav_mat_dup_ginv_post, lav_func_grad_simple, lav_mat_vech_row_idx, lav_mat_vech_col_idx, lav_mat_antidiag_idx, lav_mat_dup_pre_post, lav_mat_dup_ginv_pre, lav_mat_com_pre_post, lav_pt_unrestricted, lav_pt_independence, lav_mat_vechru_idx, lav_mat_upper2full, lav_mat_lower2full, lav_mat_com_mn_pre, lav_samp_from_data, lav_mat_vechru_rev, lav_mat_vechr_idx, lav_mat_vechu_idx, lav_mat_diagh_idx, lav_pt_attributes, lav_mat_vechr_rev, lav_mat_vechu_rev, lav_mat_vech_idx, lav_mat_diag_idx and 30 more - RR 4.6.0 released · 2026-04-24
- 0.6-212025-12-21 · diff ↗ ·
removed 2 exports
bootstrapLRT, InformativeTestingadded 16 exports
lav_getcov, lav_char2num, lav_cor2cov, lavParameterEstimates, lavInspectSampleCov, lavBootstrap, lavSimulateData, lav_mplus_lavaan, lav_mplus_syntax_model, lav_label_code, lav_model_plotinfo, lav_plotinfo_positions, lav_plotinfo_tikzcode, lav_plotinfo_rgraph, lav_plotinfo_svgcode, lav_plot - 0.6-202025-09-21 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.6-192024-09-26 · diff ↗
- 0.6-18
- RR 4.4.0 released · 2024-04-24
- 0.6-172023-12-20 · diff ↗
- 0.6-16
- RR 4.3.0 released · 2023-04-21
- 0.6-152023-03-14 · diff ↗
- 0.6-142023-02-09 · diff ↗
- 0.6-13
- 0.6-122022-07-04 · diff ↗
Show 38 earlier eventsHide 38 earlier events
- RR 4.2.0 released · 2022-04-22
- 0.6-112022-03-31 · diff ↗
- 0.6-102022-01-25 · diff ↗
- 0.6-9
- RR 4.1.0 released · 2021-05-18
- 0.6-82021-03-10 · diff ↗ ·
removed 13 exports
vech, vech.reverse, vechru, vechru.reverse, lower2full, vechr, vechr.reverse, vechu, vechu.reverse, upper2full, duplicationMatrix, commutationMatrix, sqrtSymmetricMatrixadded 3 exports
lav_partable_add, lav_data_update, lav_samplestats_from_data - 0.6-72020-07-31 · diff ↗
- 0.6-62020-05-13 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.6-52019-08-28 · diff ↗
- 0.6-42019-07-03 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.6-3
- 0.6-22018-07-16 · diff ↗
- 0.6-1
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- 0.5-23.10972017-02-24 · diff ↗ ·
added 7 exports
lavListInspect, lavListTech, lavOptions, mplus2lavaan.modelSyntax, lav_partable_constraints_def, lav_partable_constraints_ceq, lav_partable_constraints_ciq - 0.5-222016-09-24 · diff ↗
- 0.5-21
- RR 3.3.0 released · 2016-05-03
- 0.5-202015-11-07 · diff ↗
- 0.5-192015-10-03 · diff ↗ ·
added 8 exports
lavTestScore, lav_partable_complete, lav_partable_attributes, lav_partable_merge, lav_model_get_parameters, lav_model_set_parameters, lav_model_implied, lav_model_vcov_se - RR 3.2.0 released · 2015-04-16
- 0.5-182015-04-06 · diff ↗ ·
added 39 exports
lavPredict, lav_matrix_vec, lav_matrix_vecr, lav_matrix_vech, lav_matrix_vechr, lav_matrix_vechu, lav_matrix_vechru, lav_matrix_vech_idx, lav_matrix_vech_row_idx, lav_matrix_vech_col_idx, lav_matrix_vechr_idx, lav_matrix_vechu_idx, lav_matrix_vechru_idx, lav_matrix_diag_idx, lav_matrix_diagh_idx, lav_matrix_antidiag_idx, lav_matrix_vech_reverse, lav_matrix_vechru_reverse, lav_matrix_upper2full, lav_matrix_vechr_reverse, lav_matrix_vechu_reverse, lav_matrix_lower2full, lav_matrix_duplication, lav_matrix_duplication_pre, lav_matrix_duplication_post, lav_matrix_duplication_pre_post, lav_matrix_duplication_ginv, lav_matrix_duplication_ginv_pre, lav_matrix_duplication_ginv_post, lav_matrix_duplication_ginv_pre_post and 9 more - 0.5-172014-09-30 · diff ↗ ·
added 12 exports
lavInspect, inspect, lavTech, lav_partable_independence, lav_partable_unrestricted, lav_partable_npar, lav_partable_ndat, lav_partable_df, lav_func_gradient_complex, lav_func_gradient_simple, lav_func_jacobian_complex, lav_func_jacobian_simple - RR 3.1.0 released · 2014-04-10
- 0.5-162014-03-07 · diff ↗ ·
added 6 exports
lavTablesFitCp, lavTablesFitCf, lavTablesFitCm, lavTestLRT, lavTestWald, lavCor - 0.5-152013-11-15 · diff ↗
- 0.5-142013-07-21 · diff ↗
- 0.5-132013-05-11 · diff ↗ ·
removed 1 export
parseModelStringadded 7 exports
lavParTable, lavNames, lavParseModelString, lavTables, lavExport, lavMatrixRepresentation, mplus2lavaan - RR 3.0.0 released · 2013-04-03
- 0.5-12
- 0.5-112012-12-19 · diff ↗
- 0.5-102012-10-25 · diff ↗
- 0.5-92012-09-08
- removedRemoved from CRAN2012-09-07uncredited copying of code contrary to its licence
- RR 2.15.0 released · 2012-03-30
Package metadata
- First published
- 2012-09-08
- Total releases
- 38 / 14 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.4
- Bundled data
- 213 KB / 4 files
- Download size
- 1.6 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("lavaan")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/cran.package.lavaan, 10.18637/jss.v048.i02.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.