The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

lavDiag: Latent Variable Models Diagnostics

Diagnostics and visualization tools for latent variable models fitted with 'lavaan' (Rosseel, 2012 <doi:10.18637/jss.v048.i02>). The package provides fast, parallel-safe factor-score prediction (lavPredict_parallel()), data augmentation with model predictions, residuals, delta-method standard errors and confidence intervals (augment()), and model-based latent grids for continuous, ordinal, or mixed indicators (prepare()). It offers item-level empirical versus model curve comparison using generalized additive models for both continuous and ordinal indicators (item_data(), item_plot()) via 'mgcv' (Wood, 2017, ISBN:9781498728331), residual diagnostics including residual correlation tables and plots (resid_cor(), resid_corrplot()) using 'corrplot' (Wei and Simko, 2021 <https://github.com/taiyun/corrplot>), and Q–Q checks of residual z-statistics (resid_qq()), optionally with non-overlapping labels from 'ggrepel' (Slowikowski, 2024 <https://CRAN.R-project.org/package=ggrepel>). Heavy computations are parallelized via 'future'/'furrr' (Bengtsson, 2021 <doi:10.32614/RJ-2021-048>; Vaughan and Dancho, 2018 <https://CRAN.R-project.org/package=furrr>). Methods build on established literature and packages listed above.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: corrplot (≥ 0.90), dplyr, furrr, future, future.apply, ggplot2, ggrepel, igraph, lavaan, mgcv, purrr, rlang, stringr, tibble, tidyselect, tidyr, vctrs, visNetwork, withr
Suggests: spelling, testthat (≥ 3.0.0)
Published: 2026-01-17
DOI: 10.32614/CRAN.package.lavDiag
Author: Karel Rečka [aut, cre]
Maintainer: Karel Rečka <reckak at mail.muni.cz>
BugReports: https://github.com/reckak/lavDiag/issues
License: MIT + file LICENSE
URL: https://github.com/reckak/lavDiag
NeedsCompilation: no
Language: en-US
Citation: lavDiag citation info
Materials: README, NEWS
CRAN checks: lavDiag results

Documentation:

Reference manual: lavDiag.html , lavDiag.pdf

Downloads:

Package source: lavDiag_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: lavDiag_0.1.0.zip
macOS binaries: r-release (arm64): lavDiag_0.1.0.tgz, r-oldrel (arm64): lavDiag_0.1.0.tgz, r-release (x86_64): lavDiag_0.1.0.tgz, r-oldrel (x86_64): lavDiag_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=lavDiag to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.