Skip to content

causaldef

0.2.1Package record

Decision-Theoretic Causal Diagnostics via Experiment Deficiency

0packages depend
1.7Kdownloads / year
60.5%test coverage
13/13flavors OK

Overview

About

Implements a deficiency-theoretic framework for causal inference, grounded in the classical theory of statistical experiment comparison, as described in Akdemir (2026) doi:10.5281/zenodo.21877511. Provides theorem-backed bounds together with computable proxy diagnostics for information loss from confounding, selection bias, and distributional shift. Supports continuous, binary, count, survival, and competing risks outcomes. Key features include propensity-score total-variation deficiency proxies, negative control diagnostics, policy regret bounds, and sensitivity analysis via confounding frontiers.

Changes in 0.2.1

Bug Fixes

  • **confounding_frontier() / .tv_distance_normal()**: Fixed a numerical bug in the closed-form crossing-point TV computation that returned values near 0 instead of near 1 when both Gaussian components have very small standard deviations relative to their mean separation (a near-degenerate point-mass regime where the quadratic discriminant loses precision). Replaced with integration split into pieces sized to each component's own sd. Verified against an independently-constructed cross-check across 3000 random cases spanning 8 orders of magnitude in sd (max discrepancy ~4e-8); the function's default usage range within confounding_frontier() was never affected by this bug.

Documentation

Show all changes in 0.2.1Hide the rest of the changes in 0.2.1
  • Removed an unspecified "universal constant" phrase from rkhs_rate_bound() and confounding_frontier() documentation (the underlying manuscript bound was found to not hold with any single universal constant for large sigma_A and was replaced with an explicit, unconditional bound).
  • Hedged interpretive guidance in the README and vignettes.
  • Reworded documentation, README, and vignettes to reduce narrative over-attribution to "Le Cam" (e.g. "Le Cam deficiency" to "deficiency", "Le Cam's theory" to "the classical theory of statistical experiment comparison"), while keeping the Le Cam & Yang (2000) bibliography citation. No functional code changes from this item.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 8.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK7 OK2026-04-01
Advisories

none known

Documentation

In release 0.2.1
READMEYes · 557 wordsVignettesYes · 11 · dynamicNEWSYes · 100% structured · mentions 0.2.1Citation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
55 (4 internal)includes a package overview page
Examples that run
79%11 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran) · 2 never run
Exported functions with examples
56%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
16%

Downloads

1.7K
CRAN downloads in the past year
Rank #12,913 · ~5/day · ~145/mo
Daily download trend is not available in this view yet.
34430 days
86590 days
1.7K1 year
Compare downloads with other packages →
Also on72 r2u22 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-08-23
Responsiveness
not measured
PracticesBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/denizakdemir/causaldef on 2026-10-11.

Docs source (2)
README.Rmdpkgdown
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing causaldef adds 19 packages (9 with compiled code, 14 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.

Depends (1)
R >= 3.6.0
Imports (5)
checkmatecliggplot2statsgraphics
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.2.0 (2026)
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.1Latest
    record
    2026-03-31 · current release · diff ↗
  • 0.2.0
    record
    2026-03-31
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-03-31
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.6.0
Bundled data
378 KB / 4 files
Download size
1.2 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("causaldef")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.5281/zenodo.21877511.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for causaldef version 0.2.1 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy