kevjosey / cbal

Covariate Balancing Weights and Causal Estimation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:R 95.5%Language:Makefile 4.5%