Skip to content

causalfrag

0.2.0Package record

Cross-Framework Sensitivity Analysis with an OLS Crosswalk

0packages depend
1.2Kdownloads / year
29.3%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.2.0

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 for lm fits, sens_results objects and a bare t statistic.
  • run_sensitivity() attaches the crosswalk to sens_results objects built from lm fits; print() and generate_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 renamed fragility_report() so that it no longer masks confoundvis::sens_report() when both packages are attached.

Bug fixes

  • The konfound call in run_sensitivity() now passes nobs(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

CRAN checks
13OK
Slowest check: 1.9 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK6 OK2026-06-16
Advisories

none known

Documentation

In release 0.2.0
README· In the repository, left out of the releaseVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.2.0Citation fileNoWebsitenot declared in DESCRIPTION
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

1.2K
CRAN downloads in the past year
Rank #14,195 · ~3/day · ~97/mo
Daily download trend is not available in this view yet.
34730 days
83290 days
1.2K1 year
Compare downloads with other packages →
Also on25 r2u7 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-06-06 · The default branch showed an older version (0.1.1) than CRAN on 2026-10-21
Responsiveness
not measured
Earlier repositories
PracticesBeta

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.

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

Installing causalfrag adds 4 packages (4 with compiled code, 2.5 MB of source tarballs). Heaviest: jsonlite 1.0 MB, rlang 766 KB, cli 629 KB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

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

Pick two releases to compare their code metrics.

  • 0.2.0Latest
    record
    2026-10-01 · current release · diff ↗ ·
    removed 1 export
    sens_report
    added 2 exports
    crosswalk, fragility_report
  • 0.1.1
    record
    2026-06-15
  • R
    R 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")
Hait, S. (2026). causalfrag: Cross-Framework Sensitivity Analysis with an OLS Crosswalk (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

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

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.

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