asympDiag
Diagnostic Tools for Asymptotic Theory
v0.3.2
·
Feb 15, 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
248
Last 30 days
17615th
811
Last 90 days
3K
Last year
Trend: +32.6% (30d vs prior 30d)
CRAN Check Status
5
ERROR
8
OK
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | ERROR |
| r-devel-linux-x86_64-debian-gcc | ERROR |
| 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 | ERROR |
| r-patched-linux-x86_64 | ERROR |
| r-release-linux-x86_64 | ERROR |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (5 non-OK)
ERROR
r-devel-linux-x86_64-debian-clang
tests
Running ‘testthat.R’ [10s/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 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-devel-linux-x86_64-debian-gcc
tests
Running ‘testthat.R’ [6s/8s]
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-oldrel-windows-x86_64
tests
Running 'testthat.R' [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 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-patched-linux-x86_64
tests
Running ‘testthat.R’ [10s/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 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-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
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