CBPS
0.24Covariate Balancing Propensity Score
Overview
Implements the covariate balancing propensity score (CBPS) proposed by Imai and Ratkovic (2014) DOI:10.1111/rssb.12027. The propensity score is estimated such that it maximizes the resulting covariate balance as well as the prediction of treatment assignment. The method, therefore, avoids an iteration between model fitting and balance checking. The package also implements optimal CBPS from Fan et al. (in-press) DOI:10.1080/07350015.2021.2002159, several extensions of the CBPS beyond the cross-sectional, binary treatment setting. They include the CBPS for longitudinal settings so that it can be used in conjunction with marginal structural models from Imai and Ratkovic (2015) DOI:10.1080/01621459.2014.956872, treatments with three- and four-valued treatment variables, continuous-valued treatments from Fong, Hazlett, and Imai (2018) DOI:10.1214/17-AOAS1101, propensity score estimation with a large number of covariates from Ning, Peng, and Imai (2020) DOI:10.1093/biomet/asaa020, and the situation with multiple distinct binary treatments administered simultaneously. In the future it will be extended to other settings including the generalization of experimental and instrumental variable estimates.
Install
Health
- OK2026-04-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-0913 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Downloads
Dependencies
Code & Tests
- Cyclomatic complexity
- 6.0 median / 31 max
- Test cases
- 2 / 0.02 per code line
- Documented parameters
- 100%
Test coverage
Line coverage
18%
Expression
18.6%
Tests / Examples
18.0% / 33% ex
Functions
32 9 exported
Complexity
9.5 avg / 31 max
Call network
32 nodes / 16 edges
Call graph
Open call graph →Lowest coverage
32 functions| Function | Cyclo | Coverage |
|---|---|---|
| AsyVar exp | 26 | 0% |
| CBIV exp | 19 | 0% |
| balance exp | 1 | 0% |
| hdCBPS exp | 5 | 0% |
| npCBPS exp | 5 | 0% |
| vcov_outcome exp | 1 | 0% |
People & History
24 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.24Latest
- 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.232022-01-18 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.222021-03-29 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.212019-08-21 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.202019-03-22 · diff ↗
- 0.192018-06-17 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.182018-03-10 · diff ↗
Show 23 earlier events
- 0.172018-01-30 · diff ↗
- 0.162017-12-19 · diff ↗
- 0.152017-11-26 · diff ↗
- 0.142017-10-02 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.132016-12-30 · diff ↗
- 0.122016-11-01 · diff ↗
- 0.112016-05-13 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 0.102015-09-21 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 0.92014-08-14 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 0.82014-03-08 · diff ↗
- 0.72013-07-25 · diff ↗
- 0.62013-06-07 · diff ↗
- 0.52013-05-08 · diff ↗
- 0.42013-04-03 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 0.32013-01-31 · diff ↗
- 0.22012-09-29 · diff ↗
- 0.12012-07-19
- RR 2.15.0 released · 2012-03-30
Package metadata
- First published
- 2012-07-19
- Total releases
- 24 / 14 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.4
- Bundled data
- 42 KB / 2 files
- Download size
- 108 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet