Package: rbw Type: Package Date: 2022-03-01 Title: Residual Balancing Weights for Marginal Structural Models Version: 0.3.2 Authors@R: c( person("Xiang", "Zhou", email = "xiang_zhou@fas.harvard.edu", role = "cre"), person("Derick da Silva", "Baum", email = "derick_baum@g.harvard.edu", role = "aut")) 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 ). This package provides three functions, rbwPoint(), rbwMed(), and rbwPanel(), that produce residual balancing weights for estimating (a), (b), (c), respectively. Depends: R (>= 3.5.0), Imports: dplyr (>= 0.8.4), stats, rlang (>= 0.4.4) Suggests: ebal, knitr, survey, rmarkdown, testthat (>= 3.0.0) License: GPL (>= 3) Encoding: UTF-8 LazyData: true RoxygenNote: 7.1.1 URL: https://github.com/xiangzhou09/rbw BugReports: https://github.com/xiangzhou09/rbw Config/testthat/edition: 3 Repository: https://xiangzhou09.r-universe.dev Date/Publication: 2022-03-01 15:27:27 UTC RemoteUrl: https://github.com/xiangzhou09/rbw RemoteRef: HEAD RemoteSha: 78b6c94e7f8acf34100e659c263be15cb84f8beb NeedsCompilation: no Packaged: 2026-06-12 11:03:44 UTC; root Author: Xiang Zhou [cre], Derick da Silva Baum [aut] Maintainer: Xiang Zhou