Skip to content

asympDiag

Diagnostic Tools for Asymptotic Theory

v0.3.3 · Jul 1, 2026 · MIT + file LICENSE

Description

Leveraging Monte Carlo simulations, this package provides tools for diagnosing regression models. It implements a parametric bootstrap framework to compute statistics, generates diagnostic envelopes to assess goodness-of-fit, and evaluates type I error control for Wald tests. By simulating data under the assumption that the model is true, it helps to identify model mis-specifications and enhances the reliability of the model inferences.

Downloads

CRAN

273

Last 30 days

16996th

672

Last 90 days

3K

Last year

Trend: +59.7% (30d vs prior 30d)

r2u CRAN

7

Last 30 days

34

Last 90 days

130

Last year

Trend: -36.4% (30d vs prior 30d)

autoCRAN

4

Last 7 days

23

Last 30 days

2

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

2 ERROR
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 ERROR
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 ERROR
Check details (2 non-OK)
ERROR r-release-linux-x86_64

tests

Running ‘testthat.R’ [9s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(asympDiag)
  > 
  > test_check("asympDiag")
  Saving _problems/test-simulate_wald_pvalues-101.R
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 166 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-envelope.R:63:3', 'test-envelope.R:70:3',
    'test-envelope.R:79:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-simulate_wald_pvalues.R:101:5'): simulate_wald_pvalues works with poisson with offset ──
  Error in `plot.AD_pvalues(out, which = ncoef + 1)`: No p-value to plot.
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-simulate_wald_pvalues.R:99:3
   2. │ └─base::withCallingHandlers(...)
   3. └─asympDiag::simulate_wald_pvalues(fit, nsim = 5) at test-simulate_wald_pvalues.R:101:5
   4.   ├─base::plot(out, which = ncoef + 1)
   5.   └─asympDiag:::plot.AD_pvalues(out, which = ncoef + 1)
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 166 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-windows-x86_64

tests

Running 'testthat.R' [9s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(asympDiag)
  > 
  > test_check("asympDiag")
  Saving _problems/test-simulate_wald_pvalues-101.R
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 166 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-envelope.R:63:3', 'test-envelope.R:70:3',
    'test-envelope.R:79:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-simulate_wald_pvalues.R:101:5'): simulate_wald_pvalues works with poisson with offset ──
  Error in `plot.AD_pvalues(out, which = ncoef + 1)`: No p-value to plot.
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-simulate_wald_pvalues.R:99:3
   2. │ └─base::withCallingHandlers(...)
   3. └─asympDiag::simulate_wald_pvalues(fit, nsim = 5) at test-simulate_wald_pvalues.R:101:5
   4.   ├─base::plot(out, which = ncoef + 1)
   5.   └─asympDiag:::plot.AD_pvalues(out, which = ncoef + 1)
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 166 ]
  Error:
  ! Test failures.
  Execution halted

Check History

ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 21, 2026
ERROR r-release-linux-x86_64

tests

Running ‘testthat.R’ [9s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional t
...[truncated]...
it, nsim = 5) at test-simulate_wald_pvalues.R:101:5
   4.   ├─base::plot(out, which = ncoef + 1)
   5.   └─asympDiag:::plot.AD_pvalues(out, which = ncoef + 1)
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 166 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

3,391

Files

43

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,476 (43.5%)Tests 1,011 (29.8%)Docs 904 (26.7%)

API

Exported functions

15

Internal functions

37

Recent export changes

v0.3.0+15 concat_pvalues, envelope, envelope_residual +12 more

Testing & CI

Has tests

Yes

Test-to-code ratio

0.69

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2025-03-26

Latest release

2026-07-02

Avg cadence

137 days

Cold removal rate

Dep drift

0

LOC over versions

v0.3.0: 3,340 LOCv0.3.1: 3,355 LOCv0.3.2: 3,365 LOCv0.3.3: 3,391 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies cli asympDiag

Version History

5 tracked
updated 0.3.3 ← 0.3.2 diff Jul 2, 2026
new 0.3.2 Mar 10, 2026
updated 0.3.2 ← 0.3.1 diff Feb 14, 2026
updated 0.3.1 ← 0.3.0 diff Mar 26, 2025
new 0.3.0 Mar 25, 2025