rbw
Residual Balancing Weights for Marginal Structural Models
Description
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.
Downloads
254
Last 30 days
17368th
704
Last 90 days
2.6K
Last year
Trend: +3.3% (30d vs prior 30d)
CRAN Check Status
Show all 14 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | NOTE |
| r-devel-linux-x86_64-debian-gcc | NOTE |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-macos-arm64 | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (2 non-OK)
CRAN incoming feasibility
Maintainer: ‘Xiang Zhou <xiang_zhou@fas.harvard.edu>’ The BugReports field in DESCRIPTION has https://github.com/xiangzhou09/rbw which should likely be https://github.com/xiangzhou09/rbw/issues instead.
CRAN incoming feasibility
Maintainer: ‘Xiang Zhou <xiang_zhou@fas.harvard.edu>’ The BugReports field in DESCRIPTION has https://github.com/xiangzhou09/rbw which should likely be https://github.com/xiangzhou09/rbw/issues instead.
Check History
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
CRAN incoming feasibility
Maintainer: ‘Xiang Zhou <xiang_zhou@fas.harvard.edu>’ The BugReports field in DESCRIPTION has https://github.com/xiangzhou09/rbw which should likely be https://github.com/xiangzhou09/rbw/issues instead.
CRAN incoming feasibility
Maintainer: ‘Xiang Zhou <xiang_zhou@fas.harvard.edu>’ The BugReports field in DESCRIPTION has https://github.com/xiangzhou09/rbw which should likely be https://github.com/xiangzhou09/rbw/issues instead.