Cross-Framework Sensitivity Analysis with an OLS Crosswalk
Overview
Runs, classifies, interprets and reports sensitivity analyses for unmeasured confounding across the partial R-squared robustness value approach (Cinelli and Hazlett, 2020, doi:10.1111/rssb.12348), E-values (VanderWeele and Ding, 2017, doi:10.7326/M16-2607), and the impact threshold for a confounding variable and robustness of inference to replacement (Frank, 2000, doi:10.1177/0049124100029002001; Frank, Maroulis, Duong and Kelcey, 2013, doi:10.3102/0162373713493129). An ordinary least squares crosswalk reports the robustness values, impact threshold and replacement percentage computed from the focal t statistic and residual degrees of freedom, makes explicit that their agreement is largely fixed by that shared input, and flags the boundary band in which they disagree. Template-based plain-language reports are included, with optional integration with the 'confoundvis' package for plots.
New
crosswalk()reports the point and inference Robustness Values, the conditional ITCV and the RIR percentage computed from the focal |t| and residual degrees of freedom, states that their agreement is largely fixed by that shared input, and flags the boundary band in which ITCV and RIR are positive while the inference Robustness Value is still zero. Methods forlmfits,sens_resultsobjects and a bare t statistic.run_sensitivity()attaches the crosswalk tosens_resultsobjects built fromlmfits;print()andgenerate_report()display it.
Deprecated
- The Causal Fragility Index (
compute_cfi(),compute_cfi_weighted(),compute_cfi_benchmarked(),compare_cfi(),print_cfi()) is deprecated and will be removed in a future release. Under OLS, most of its components are functions of the same |t| and degrees of freedom, so the composite counted the same test information several times.flag_fragility()no longer computes it automatically.
Show all changes in 0.2.0Hide the rest of the changes in 0.2.0
Breaking changes
sens_report()is renamedfragility_report()so that it no longer masksconfoundvis::sens_report()when both packages are attached.
Bug fixes
- The konfound call in
run_sensitivity()now passesnobs(model)and the number of model-matrix columns, so the residual degrees of freedom match the fitted model when factors or missing values are present.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK6 OK2026-06-16
Documentation
- Help pages
- 23 (2 internal)includes a package overview page
- Examples that run
- 20%3 run in a plain check · 12 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 88%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 9%
Downloads
Repository
- github.com/causalfragility-lab/causalfrag · last recorded on 2026-10-01
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/subirhait/causalfrag on 2026-10-21.
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.2.0Latest2026-10-01 · current release · diff ↗ ·
removed 1 export
sens_reportadded 2 exports
crosswalk, fragility_report - 0.1.12026-06-15
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-06-15
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 49 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("causalfrag")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.