Skip to content

modeldiag

0.1.0Package record

Comprehensive Diagnostics for Statistical Models

0packages depend
1.4Kdownloads / year
66.8%test coverage
13/13flavors OK

Overview

About

Provides a unified framework for diagnosing common issues in statistical models including linear models, generalized linear models (logistic and Poisson regression), and survival models. Implements tests for multicollinearity, heteroscedasticity, autocorrelation, normality, influential observations, overdispersion, zero-inflation, and proportional hazards assumptions. Includes visualization methods for graphical diagnostics. Methods are based on established approaches including Fox and Monette (1992) doi:10.1080/01621459.1992.10475190, Breusch and Pagan (1979) doi:10.2307/1911963, and Dean and Lawless (1989) doi:10.1080/01621459.1989.10478792.

Changes in 0.1.0
  • Initial CRAN submission.
  • Added diagnose_model() generic function with methods for:
  • Linear models (lm)
  • Generalized linear models (glm) with binomial and poisson families
  • Cox proportional hazards models (coxph)
  • Implemented comprehensive diagnostic tests:
  • Multicollinearity (VIF)
  • Heteroscedasticity (Breusch-Pagan test)
  • Autocorrelation (Durbin-Watson test)
  • Normality (Shapiro-Wilk test)
  • Influential observations (Cook's distance, dfbetas)
  • Overdispersion (Poisson models)
Show all changes in 0.1.0Hide the rest of the changes in 0.1.0
  • Zero-inflation (Poisson models)
  • Proportional hazards (Cox models)
  • Linearity of logit (Logistic models)
  • Goodness of fit (Hosmer-Lemeshow test)
  • Added print(), summary(), and plot() methods for diagnostic results
  • Comprehensive plotting capabilities for visual diagnostics
  • Full documentation with roxygen2
  • Unit tests with testthat

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.3 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK7 OK2026-05-29
Advisories

none known

Documentation

In release 0.1.0
READMEYes · 323 wordsVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 0.1.0Citation fileNo
Help pages
7 (1 internal)includes a package overview page
Examples that run
100%1 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

1.4K
CRAN downloads in the past year
Rank #16,152 · ~4/day · ~119/mo
Daily download trend is not available in this view yet.
26030 days
76690 days
1.4K1 year
Compare downloads with other packages →
Also on21 r2u3 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-06-09 · Default branch at 0.1.2, ahead of CRAN 0.1.0 (checked 2026-10-18)
Responsiveness
not measured
PracticesBeta

6 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/teniola17/modeldiag on 2026-10-18.

Continuous integration (1)
GitHub Actions
Docs source (2)
pkgdown

GitHub Pages site last deployed 2026-06-09

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Research and citation (1)
codemeta.json
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

Installing modeldiag adds 62 packages (32 with compiled code, 55 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, doBy 4.3 MB.

Depends (1)
R >= 3.5.0
Imports (6)
statsgraphicscarlmtestResourceSelectionsurvival
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (3)
Author, Maintainer since 0.1.0 (2026)
Contributor
Releases (1)
  • 0.1.0Latest
    2026-05-28 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-05-28
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Download size
42 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("modeldiag")
Adewuyi, E., Lukman, A., & Owolabi, A. (2026). modeldiag: Comprehensive Diagnostics for Statistical Models (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.modeldiag

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 modeldiag version 0.1.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, 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