Skip to content

EmpiricalCalibration

Routines for Performing Empirical Calibration of Observational Study Estimates

v3.1.4 · Feb 14, 2025 · Apache License 2.0

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

CRAN

779

Last 30 days

4130th

2.1K

Last 90 days

14.5K

Last year

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

r2u CRAN

53

Last 30 days

171

Last 90 days

524

Last year

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

autoCRAN

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

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

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
ERROR r-oldrel-windows-x86_64

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

R 3,683 (50.7%)C/C++/src 269 (3.7%)Tests 1,057 (14.5%)Docs 1,608 (22.1%)Vignettes 649 (8.9%)

API

Exported functions

28

Internal functions

34

Recent export changes

v3.1.0+2 compareEase, computeCvPoissonRegression

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

v1.1.0: 2,365 LOCv1.2.0: 2,427 LOCv1.3.1: 3,423 LOCv1.3.6: 3,720 LOCv1.4.0: 3,898 LOCv2.0.0: 4,139 LOCv2.0.1: 4,219 LOCv2.0.2: 4,264 LOCv2.1.0: 4,399 LOCv3.0.0: 6,502 LOCv3.1.0: 7,187 LOCv3.1.1: 7,191 LOCv3.1.2: 7,198 LOCv3.1.3: 7,245 LOCv3.1.4: 7,266 LOC

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

Reverse Dependencies (6)

Dependency Network

Dependencies Reverse dependencies ggplot2 gridExtra rlang Rcpp CohortMethod EvidenceSynthesis SelfControlledCaseSeries SelfControlledCohort debiasedTrialEmulation pda EmpiricalCalibration

Version History

16 tracked
new 3.1.4 Mar 10, 2026
updated 3.1.4 ← 3.1.3 diff Feb 13, 2025
updated 3.1.3 ← 3.1.2 diff Sep 29, 2024
updated 3.1.2 ← 3.1.1 diff Dec 20, 2023
updated 3.1.1 ← 3.1.0 diff Aug 8, 2022
updated 3.1.0 ← 3.0.0 diff Jun 30, 2022
updated 3.0.0 ← 2.1.0 diff Sep 27, 2021
updated 2.1.0 ← 2.0.2 diff Mar 3, 2021
updated 2.0.2 ← 2.0.1 diff Apr 6, 2020
updated 2.0.1 ← 2.0.0 diff Jan 12, 2020
updated 2.0.0 ← 1.4.0 diff Jul 7, 2019
updated 1.4.0 ← 1.3.6 diff Nov 23, 2018
updated 1.3.6 ← 1.3.1 diff Nov 6, 2017
updated 1.3.1 ← 1.2.0 diff May 15, 2017
updated 1.2.0 ← 1.1.0 diff Aug 15, 2016