rbw
0.3.2Residual Balancing Weights for Marginal Structural Models
Overview
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.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE2026-03-1012 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Downloads
Repository
Stars over time
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 4.5 median / 30 max
- Test cases
- 5 / 0.21 per code line
- Documented parameters
- 97%
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
8 4 exported
Complexity
10.4 avg / 30 max
Call network
8 nodes / 7 edges
Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
People & History
4 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.3.2Latest
- 0.3.12022-02-28 · diff ↗
- 0.3.02021-09-23 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.2.02020-04-15
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2020-04-15
- Total releases
- 4 / 6 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 976 KB / 4 files
- Download size
- 1.4 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet