adaptDiag
Bayesian Adaptive Designs for Diagnostic Trials
v0.1.1
·
Jun 28, 2026
·
GPL-3
Description
Simulate clinical trials for diagnostic test devices and evaluate the operating characteristics under an adaptive design with futility assessment determined via the posterior predictive probabilities.
Downloads
CRAN
363
Last 30 days
10989th
963
Last 90 days
4K
Last year
Trend: +28.7% (30d vs prior 30d)
r2u
CRAN
10
Last 30 days
27
Last 90 days
114
Last year
Trend: -33.3% (30d vs prior 30d)
autoCRAN
3
Last 7 days
44
Last 30 days
0
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
13
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 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Changelog
Full NEWS →v0.1.1
# adaptDiag 0.1.1
•
•
•
•
• Fixed an error in
•
binom_sample_size(): fixed the normal approximation used to initialise the sample size search. The previous formula used only $p_1$ in the variance term; the correct Chow et al. (2017) formula uses $z_\alpha\sqrt{p_0(1-p_0)} + z_\beta\sqrt{p_1(1-p_1)}$. The exact discrete search result is unchanged, but the approximation now matches the cited reference.•
multi_trial(): improved documentation for prior_sens, prior_spec, and prior_prev to explain that c(0.1, 0.1) is a bimodal near-Jeffreys prior that places most mass near 0 and 1, and that c(1, 1) (uniform) or an informative prior from pilot data may be more appropriate.•
multi_trial(): added a seed argument for reproducible simulations (#5). Reproducibility is implemented via doRNG::%dorng%, which correctly handles RNG stream splitting across all parallel backends.•
multi_trial() now uses a single foreach + doRNG::%dorng% dispatch path for all platforms, replacing the previous platform-specific branches (pbmcapply::pbmclapply on Unix, foreach::%dopar% on Windows). This fixes a latent Windows bug and simplifies the implementation. pbmcapply has been removed as a dependency and doRNG added.• Fixed an error in
multi_trial() that occurred at early interim looks with low prevalence, when zero observations fell into a cell of the 2×2 contingency table (#5).Check History
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
Dependency Network
Version History
2 tracked
new
0.1.0
Mar 10, 2026
R Observatory began tracking this package on Mar 10, 2026; it first appeared on CRAN Aug 17, 2021. Releases before tracking aren’t shown.