Skip to content
/ cbal Public

Covariate Balancing Weights and Causal Estimation

Notifications You must be signed in to change notification settings

kjosey/cbal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cbal: Covariate Balancing Weights

An R package for finding covariate balancing weights for causal inference. These functions find the solution to a convex optimization problem using Bregman distances as the criterion function. The balancing weights are evaluated as the generalized projection of the sampling weights into an intersection of hyperplanes that form the basis of a linear subspace. This linear subspace constrains the moments for the empirical distribution of the covariates to be identical between treatment groups.

In its current form, cbal supports three Bregman distances and requires a binary treatment assignment. In the future, this package will be extended to allow for other criterion distance functions and multivalued treatment assignments.

Installing cbal

Options for installing cbal:

  1. Install the developmental version from github. This will require you to have devtools installed and, if you are using Windows, you'll need Rtools installed as well.
library(devtools)
install_github("kevjosey/cbal", build_vignettes = TRUE)
  1. Clone the repo and use GNU make
make install
  1. Go to the release page and download the tar.gz file of the version you want to install.
  • Install from the command line
R CMD INSTALL cbal_<version>.tar.gz
  • Within R
install.packages(<path_to_file>, repos = NULL, type = "source")

About

Covariate Balancing Weights and Causal Estimation

Resources

Stars

Watchers

Forks

Packages

No packages published