Learn R Programming

CBPS (version 0.24)

Covariate Balancing Propensity Score

Description

Implements the covariate balancing propensity score (CBPS) proposed by Imai and Ratkovic (2014) . 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) , 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) , treatments with three- and four-valued treatment variables, continuous-valued treatments from Fong, Hazlett, and Imai (2018) , propensity score estimation with a large number of covariates from Ning, Peng, and Imai (2020) , 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.

Copy Link

Version

Install

install.packages('CBPS')

Monthly Downloads

5,490

Version

0.24

License

GPL (>= 2)

Maintainer

Christian Fong

Last Published

December 1st, 2025

Functions in CBPS (0.24)

npCBPS.fit

npCBPS.fit
plot.npCBPS

Calls the appropriate plot function, based on the number of treatments
plot.CBMSM

Plotting CBPS Estimation for Marginal Structural Models
balance

Optimal Covariate Balance
plot.CBPS

Plotting Covariate Balancing Propensity Score Estimation
hdCBPS

hdCBPS high dimensional CBPS method to parses the formula object and passes the result to hdCBPS.fit, which calculates ATE using CBPS method in a high dimensional setting.
plot.CBPSContinuous

Plot the pre-and-post weighting correlations between X and T
npCBPS

Non-Parametric Covariate Balancing Propensity Score (npCBPS) Estimation
balance.npCBPS

Calls the appropriate balance function based on the number of treatments
vcov_outcome.CBPSContinuous

vcov_outcome
print.CBPS

Print coefficients and model fit statistics
summary.CBPS

Summarizing Covariate Balancing Propensity Score Estimation
vcov_outcome

Calculate Variance-Covariance Matrix for Outcome Model
vcov.CBPS

Calculate Variance-Covariance Matrix for a Fitted CBPS Object
balance.CBPSContinuous

Calculates the pre- and post-weighting correlations between each covariate and the T
CBPS.fit

CBPS.fit determines the proper routine (what kind of treatment) and calls the approporiate function. It also pre- and post-processes the data
balance.CBPS

Calculates the pre- and post-weighting difference in standardized means for covariate within each contrast
CBMSM.fit

CBMSM.fit
CBIV

Covariate Balancing Propensity Score for Instrumental Variable Estimates (CBIV)
Blackwell

Blackwell Data for Covariate Balancing Propensity Score
CBMSM

Covariate Balancing Propensity Score (CBPS) for Marginal Structural Models
AsyVar

Asymptotic Variance and Confidence Interval Estimation of the ATE
CBPS

Covariate Balancing Propensity Score (CBPS) Estimation
LaLonde

LaLonde Data for Covariate Balancing Propensity Score