rbw: Implementation of Residual Balancing Weights for Marginal Structural Models

An R package implementing residual balancing weights for marginal structural models, which can be used to estimate marginal effects of time-varying treatments and also controlled direct/mediator effects in causal mediation analysis (Zhou and Wodtke 2020). This package provides two functions, rbwPanel() and rbwMed(), that produce residual balancing weights for analyses of time-varying treatments and causal mediation respectively. Available at https://github.com/xiangzhou09/rbw