budgetIVr
0.1.2Partial Identification of Causal Effects with Mostly Invalid Instruments
Overview
A tuneable and interpretable method for relaxing the instrumental variables (IV) assumptions to infer treatment effects in the presence of unobserved confounding. For a treatment-associated covariate to be a valid IV, it must be (a) unconfounded with the outcome and (b) have a causal effect on the outcome that is exclusively mediated by the exposure. There is no general test of the validity of these IV assumptions for any particular pre-treatment covariate. However, if different pre-treatment covariates give differing causal effect estimates when treated as IVs, then we know at least some of the covariates violate these assumptions. 'budgetIVr' exploits this fact by taking as input a minimum budget of pre-treatment covariates assumed to be valid IVs and idenfiying the set of causal effects that are consistent with the user's data and budget assumption. The following generalizations of this principle can be used in this package: (1) a vector of multiple budgets can be assigned alongside corresponding thresholds that model degrees of IV invalidity; (2) budgets and thresholds can be chosen using specialist knowledge or varied in a principled sensitivity analysis; (3) treatment effects can be nonlinear and/or depend on multiple exposures (at a computational cost). The methods in this package require only summary statistics. Confidence sets are constructed under the "no measurement error" (NOME) assumption from the Mendelian randomization literature. For further methodological details, please refer to Penn et al. (2024) doi:10.48550/arXiv.2411.06913.
Install
Health
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 100%
Downloads
Repository
Stars over time
Forks over time
PRs over time
Repository practices
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/jpenn2023/budgetivr on 2026-08-02.
Dependencies
Nothing depends on this yet.
Code & Tests
Datasets
People & History
1 release. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.1.2Latest2026-03-10 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-04-16
- Total releases
- 1 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 7.7 KB / 2 files
- Download size
- 77 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet