Skip to content

rbw

0.3.2

Residual Balancing Weights for Marginal Structural Models

0packages depend
2.8Kdownloads / year
test coverage
11/13checks pass

Overview

About
Maintained by Xiang ZhouFirst published 2020-04-154 releasesCRAN page ↗GitHub ↗

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

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 1.6 min · r-devel-linux-x86_64-fedora-gcc
Code health
Yes
Tests · ratio 0.21
not tracked
Coverage
100%
Documentation · exports
Yes
Vignettes
Yes
README
3
Dependencies · direct
Check history
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

2.8K
CRAN downloads in the past year
Rank #15,984 · ~8/day · ~229/mo
Daily download trend is not available in this view yet.
31830 days
70690 days
2.8K1 year
Compare downloads with other packages →
Also on100 r2u14 autocran

Repository

Repository
9Stars
0Forks
1Open issues
0Open PRs
0Releases

Stars over time

2024-11-26 · 92026-07-07 · 9

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (3)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 900 (65%)Rd 470 (34%)Vignettes 8 (1%)
Code characteristics
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.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (2)
Maintainer (1)
Maintainer
Authors (1)
Release timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.3.2Latest
    2022-03-01 · current release · diff ↗
  • 0.3.1
    2022-02-28 · diff ↗
  • 0.3.0
    2021-09-23 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.2.0
    2020-04-15
  • R
    R 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