Crandore Hub

rbw

Residual Balancing Weights for Marginal Structural Models

Residual balancing is a robust method of constructing weights for marginal structural models, which can be used to estimate (a) the average treatment effect in a cross-sectional observational study, (b) controlled direct/mediator effects in causal mediation analysis, and (c) the effects of time-varying treatments in panel data (Zhou and Wodtke 2020 <doi:10.1017/pan.2020.2>). This package provides three functions, rbwPoint(), rbwMed(), and rbwPanel(), that produce residual balancing weights for estimating (a), (b), (c), respectively.

Versions across snapshots

VersionRepositoryFileSize
0.3.2 rolling linux/jammy R-4.5 rbw_0.3.2.tar.gz 1.2 MiB
0.3.2 rolling linux/noble R-4.5 rbw_0.3.2.tar.gz 1.2 MiB
0.3.2 rolling source/ R- rbw_0.3.2.tar.gz 1.3 MiB
0.3.2 latest linux/jammy R-4.5 rbw_0.3.2.tar.gz 1.2 MiB
0.3.2 latest linux/noble R-4.5 rbw_0.3.2.tar.gz 1.2 MiB
0.3.2 latest source/ R- rbw_0.3.2.tar.gz 1.3 MiB
0.3.2 2026-04-26 source/ R- rbw_0.3.2.tar.gz 1.3 MiB
0.3.2 2026-04-23 source/ R- rbw_0.3.2.tar.gz 1.3 MiB
0.3.2 2026-04-09 windows/windows R-4.5 rbw_0.3.2.zip 1.2 MiB
0.3.2 2025-04-20 source/ R- rbw_0.3.2.tar.gz 1.3 MiB

Dependencies (latest)

Imports

Suggests