EmpiricalCalibration
Routines for Performing Empirical Calibration of Observational Study Estimates
Description
Routines for performing empirical calibration of observational study estimates. By using a set of negative control hypotheses we can estimate the empirical null distribution of a particular observational study setup. This empirical null distribution can be used to compute a calibrated p-value, which reflects the probability of observing an estimated effect size when the null hypothesis is true taking both random and systematic error into account. A similar approach can be used to calibrate confidence intervals, using both negative and positive controls. For more details, see Schuemie et al. (2013) <doi:10.1002/sim.5925> and Schuemie et al. (2018) <doi:10.1073/pnas.1708282114>.
Downloads
779
Last 30 days
4130th
2.1K
Last 90 days
14.5K
Last year
Trend: +28.3% (30d vs prior 30d)
53
Last 30 days
171
Last 90 days
524
Last year
Trend: -17.2% (30d vs prior 30d)
2
Last 7 days
15
Last 30 days
0
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
CRAN Check Status
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 |
Check History
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
re-building of vignette outputs
Error(s) in re-building vignettes: --- re-building 'EmpiricalCiCalibrationVignette.Rmd' using rmarkdown ! Package pdftex.def Error: File `c8afbdada883c648aa103f6204bddc3f78842b30.pdf' not found: using draft setting. Error: processing vignette 'Empi ...[truncated]... lPCalibrationVignette.Rmd' SUMMARY: processing the following files failed: 'EmpiricalCiCalibrationVignette.Rmd' 'EmpiricalMaxSprtCalibrationVignette.Rmd' 'EmpiricalPCalibrationVignette.Rmd' Error: Vignette re-building failed. Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
Code
Structure
Lines of code
7,266
Files
87
Compiled share
3.7%
Has compiled src
Yes
Language breakdown
API
Exported functions
28
Internal functions
34
Recent export changes
Testing & CI
Has tests
Yes
Test-to-code ratio
0.29
testthat edition
–
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
92.9%
\dontrun example ratio
17.9%
Roxygen coverage
100%
Has pkgdown
No
NEWS present
Yes
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
–
Unsafe pattern score
0
Dep constraint coverage
20%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
3.5.0
System requirements
–
C++ standard
–
License
Apache License 2.0
License flags
SPDX valid, OSI approved
History
Versions
15
First release
2016-02-15
Latest release
2025-02-14
Avg cadence
217 days
Cold removal rate
100%
Dep drift
5
LOC over versions
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.