Skip to content
This package was removed from CRAN on 2026-05-15. Its history is shown below.
Reason: policy violation. Attempts to use all CPU cores
Details below reflect version 0.1.0, its last release before removal.

lavDiag

0.1.0Package record

Latent Variable Models Diagnostics

0packages depend
1.4Kdownloads / year
–test coverage
–flavors OK

Overview

About

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.

Changes in 0.1.0
  • **Initial CRAN release.**
  • Provides diagnostics and visualization tools for latent variable models fitted with lavaan or blavaan.

Core functionality

  • augment() — augments fitted models with predicted values, residuals, SEs, and CIs (continuous, ordinal, or mixed indicators).
  • prepare() — constructs model-based item curves and latent grids for continuous/ordinal indicators.
  • lavPredict_parallel() — robust, parallel wrapper for lavaan::lavPredict() with automatic handling of ordinal data.

Item-level diagnostics

  • item_data() — extracts model-based and empirical item-level information for plotting or inspection.
  • item_plot() — visualizes empirical vs. model-implied item curves, including confidence intervals.

Residual diagnostics

  • resid_cor() — computes residual (co)relations and z-statistics.
  • resid_corrplot() — visualizes residual correlations using corrplot.
Show all changes in 0.1.0Hide the rest of the changes in 0.1.0
  • resid_qq() — draws Q–Q plots of residual correlation z-statistics.

Model summaries and utilities

  • parameter_estimates() — enhanced extraction of standardized parameter estimates with robust SEs.
  • model_info() — extracts compact model metadata (grouping, variables, parameterization, etc.).
  • hopper_plot() — summarizes fit indices and modification indices across multiple models.

From NEWS.md in the release

Install

Health

CRAN checks

CRAN check results are not tracked yet.

Status changes
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.1.0
READMEYes · 352 wordsVignettesNoNEWSYes · 67% structured · mentions 0.1.0Citation fileYes · software entry onlyWebsitenot declared in DESCRIPTION
Description cites a JSS article
Help pages
12
Examples that run
67%8 run in a plain check · 4 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
94%
Return-value docs
100%
Help pages citing references
0%

Downloads

1.4K
CRAN downloads in the past year
Rank #25,761 · ~4/day · ~117/mo
Daily download trend is not available in this view yet.
Also on52 r2u8 autocran

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
–indirect (not tracked)

Nothing depends on this yet.

Code & Tests

People & History

People (1)
Author, Maintainer since 0.1.0 (2026)
Releases (1)
  • archivedRemoved from CRAN
    2026-05-15
    policy violation Attempts to use all CPU cores
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.0
    2026-01-17
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-01-17
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
83 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("lavDiag")

The package provides a citation file, so citation() returns the authors' own entry.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for lavDiag version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy