Coder Social home page Coder Social logo

yongfuyu / intro_bayesian_causal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stablemarkets/intro_bayesian_causal

0.0 1.0 0.0 1.06 MB

Repository for Introduction to Bayesian Estimation of Causal Effects

Stan 31.05% R 54.42% SAS 14.54%

intro_bayesian_causal's Introduction

A Practical Introduction to Bayesian Estimation of Causal Effects: Parametric and Nonparametric Approaches

This is the companion GitHub repository for the following working paper (currently under review): https://arxiv.org/abs/2004.07375 .

Please cite the code examples here and discussed in the paper by citing the paper. The BibTex is

@misc{oganisian2020practical,
    title={A Practical Introduction to Bayesian Estimation of Causal Effects: Parametric and Nonparametric Approaches},
    author={Arman Oganisian and Jason A. Roy},
    year={2020},
    eprint={2004.07375},
    archivePrefix={arXiv},
    primaryClass={stat.ME}
}

Software Dependencies


All code and analyses generated in R version 3.6.3. We particularly rely on

Directory


  • dose_response: contains code implementing model discussed in Section 3.1 of the paper. Code generates Figure 1a.
  • partial_pool: contains code implementing model discussed in Section 3.2. Code generates Figure 1b.
  • partial_pool: contains code implementing model discussed in Section 3.2. Code generates Figure 1b.
  • g_comp: contains code estimating model discussed in Section 4.1 using Ridge prior in Equation (10). Generates Figure 2a.
  • sensitivity: contains code implementing sensitivity analysis for ignorability violations (Section 5). Generates Figure 2b.
  • Nonparametrics: contains code implementing DP, GP, and BART models. The file npbayes.R generates Figure 3a-c. The filte npbayes_ATE.R uses specified models to estimate average treatment effects (ATEs) and generates Figure 3d.

Causal and Bayesian Topics


The paper touches on the following topics

  • Standardization (i.e. g-computation in the point-treatment setting).
  • G-computation for time-varying treatments.
    • Estimating effects of static regimes.
    • Estimating effects of dynamic regimes.
  • Performing sensitivity analyses around causal assumptions via priors.

In terms of Bayesian models we touch upon

  • Bayesian bootstrapping.
  • Ridge-like and horseshoe priors for sparsity in high-dimensional regressions.
  • Hierarchical priors that induce partial pooling of conditional causal effects.
  • Dirichlet Process (DP) priors.
  • Bayesian Additive Regression Trees (BART).
  • Gaussian process (GP) priors.

intro_bayesian_causal's People

Contributors

stablemarkets avatar

Watchers

James Cloos 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.