Other packages > Find by keyword >

lavDiag  

Latent Variable Models Diagnostics
View on CRAN: Click here


Download and install lavDiag package within the R console
Install from CRAN:
install.packages("lavDiag")

Install from Github:
library("remotes")
install_github("cran/lavDiag")

Install by package version:
library("remotes")
install_version("lavDiag", "0.1.0")



Attach the package and use:
library("lavDiag")
Maintained by
Karel Rečka
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2026-01-17
Latest Update: 2026-01-17
Description:
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.
How to cite:
Karel Rečka (2026). lavDiag: Latent Variable Models Diagnostics. R package version 0.1.0, https://cran.r-project.org/web/packages/lavDiag. Accessed 05 Aug. 2026.
Previous versions and publish date:
(2026-07-09 07:52), 0.1.0 (2026-01-17 12:50)
Other packages that cited lavDiag R package
View lavDiag citation profile
Other R packages that lavDiag depends, imports, suggests or enhances
Complete documentation for lavDiag
Functions, R codes and Examples using the lavDiag R package
Full lavDiag package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

dhReg  
Dynamic Harmonic Regression
Building and forecasting time series data with multiple seasonality using Dynamic Harmonic Regressio ...
Download / Learn more Package Citations See dependency  
dcov  
A Fast Implementation of Distance Covariance
Efficient methods for computing distance covariance and relevant statistics. See Sz ...
Download / Learn more Package Citations See dependency  
noisyr  
Noise Quantification in High Throughput Sequencing Output
Quantifies and removes technical noise from high-throughput sequencing data. Two approaches are use ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
kernelPSI  
Post-Selection Inference for Nonlinear Variable Selection
Different post-selection inference strategies for kernelselection as described in kernelPSI a Post-S ...
Download / Learn more Package Citations See dependency  

28,083

R Packages

239,283

Dependencies

74,457

Author Associations

28,084

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA