Package: sbwadjust 0.3.0.9000
sbwadjust: Stable Balancing Weights for Covariate Adjustment in Trials
Covariate adjustment for randomized trials using stable balancing weights (SBW), as proposed by Irish, Zubizarreta, and Luedtke (2026) <doi:10.48550/arXiv.2609.01638>. sbw_weights() fits exact-balance SBW for a two-arm study by a closed-form solve with a nonnegative quadratic-programming fallback; sbw_estimate() computes a closed menu of treatment-effect estimands (average treatment effect, relative risk, survival ratio, Mann-Whitney, quantile contrasts) from the fitted weights, with bootstrap confidence intervals.
Authors:
sbwadjust_0.3.0.9000.tar.gz
sbwadjust_0.3.0.9000.zip(r-4.7-any)sbwadjust_0.3.0.9000.zip(r-4.6-any)sbwadjust_0.3.0.9000.zip(r-4.5-any)
sbwadjust_0.3.0.9000.tgz(r-4.6-any)sbwadjust_0.3.0.9000.tgz(r-4.5-any)
sbwadjust_0.3.0.9000.tar.gz(r-4.7-any)sbwadjust_0.3.0.9000.tar.gz(r-4.6-any)
sbwadjust_0.3.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
sbwadjust/json (API)
| # Install 'sbwadjust' in R: |
| install.packages('sbwadjust', repos = c('https://kaylairish.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/kaylairish/sbwadjust/issues
balancing-weightscausal-inferencecovariate-adjustmentrandomized-trials
Last updated from:4f8d3c2281. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 103 | ||
| source / vignettes | OK | 206 | ||
| linux-release | OK | 723 | ||
| macos-release | OK | 108 | ||
| macos-oldrel | OK | 95 | ||
| windows-devel | OK | 81 | ||
| windows-release | OK | 68 | ||
| windows-oldrel | OK | 63 | ||
| wasm-release | OK | 403 |
Exports:boot_km_ratioget_sbws_for_studyget_weights_for_group_negget_weights_for_group_nonnegkm_ratio_greenwoodsbw_estimatesbw_weights
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Bootstrap CI for an SBW-weighted KM survival ratio | boot_km_ratio |
| Study-level SBW weights: closed-form first, QP fallback if needed | get_sbws_for_study |
| Closed-form SBW group weights (negative weights allowed) | get_weights_for_group_neg |
| Nonnegative-QP SBW group weights, with clipping diagnostics | get_weights_for_group_nonneg |
| Weighted KM survival ratio S1(t0)/S0(t0) with a Greenwood-based CI | km_ratio_greenwood |
| Plot covariate balance before and after SBW weighting | plot.sbw_fit |
| Estimate a treatment effect from a fitted 'sbw_fit' object | sbw_estimate sbw_estimate.sbw_fit |
| Fit stable balancing weights for a two-arm study (design stage) | sbw_weights |
| Summarize an 'sbw_fit': balance table and weight diagnostics | summary.sbw_fit |
