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 25 Jun. 2026.
Previous versions and publish date:
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

edeaR  
Exploratory and Descriptive Event-Based Data Analysis
Exploratory and descriptive analysis of event based data. Provides methods for describing and select ...
Download / Learn more Package Citations See dependency  
airGRiwrm  
'airGR' Integrated Water Resource Management
Semi-distributed Precipitation-Runoff Modelling based on 'airGR' package models integrating human i ...
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  
foster  
Forest Structure Extrapolation with R
Set of tools to streamline the modeling of the relationship betweensatellite imagery time series or ...
Download / Learn more Package Citations See dependency  
sitmo  
Parallel Pseudo Random Number Generator (PPRNG) 'sitmo' Header Files
Provided within are two high quality and fast PPRNGs that may be used in an 'OpenMP' parallel enviro ...
Download / Learn more Package Citations See dependency  

27,535

R Packages

236,180

Dependencies

73,223

Author Associations

27,536

Publication Badges

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