Giter Site home page Giter Site logo

balance-sim's Introduction

Simulation Study Comparing Covariate Balance Methods

This repository contains code for reproducing the simulation study examined in 'A framework for covariate balance using Bregman distances' (Josey et al., 2021). In this numerical experiment, we test and compare different methods for balancing covariate moments between treatment groups to estimate the average treatment effect. These methods include calibration approaches using code found in the github repo cbal and the GMM based covariate balance propensity score approaches contained in the cbps package available on CRAN, among others.

R Scripts

  • main.R: Main script for executing simulations. The primary methods we test include calibration weights such as entropy balancing (Haimueller, 2012), generalized method of moments estimators like covariate balance propensity score methods (Imai & Ratkovic, 2014), along with the classical doubly-robust estimators of the average treatment effect (Bang & Robins, 2005).
  • output.R: Code for reproducing the plots and tables (i.e. the simulation results) found in Josey et al. (2021).
  • simFun.R: Contains functions for generating data and for fitting the different estimates. Data constructs include both homogeneous treatment effects from Kang and Schaeffer (2007) as well as heterogeneous data (which includes effect modifiers).
  • unitTest.R: Unit test the accuracy and functionality of the scripts in simFun.R

References

Bang, H., & Robins, J. M. (2005). Doubly robust estimation in missing data and causal inference models. Biometrics, 61(4), 962-973.

Hainmueller, J. (2012). Entropy balancing for causal effects: A multivariate reweighting method to produce balanced samples in observational studies. Political analysis, 20(1), 25-46.

Imai, K., & Ratkovic, M. (2014). Covariate balancing propensity score. Journal of the Royal Statistical Society Series B: Statistical Methodology, 76(1), 243-263.

Josey, K. P., Juarez‐Colunga, E., Yang, F., & Ghosh, D. (2021). A framework for covariate balance using Bregman distances. Scandinavian Journal of Statistics, 48(3), 790-816.

Kang, J. D., & Schafer, J. L. (2007). Demystifying double robustness: A comparison of alternative strategies for estimating a population mean from incomplete data.

balance-sim's People

Contributors

kevjosey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.