Giter Site home page Giter Site logo

causal-eco's Introduction

Stratified Fine Particulate Matter Exposure Response Functions (ERFs)

  • calibrate.R: Calibration function for estimating covariate balance weights with an entropy loss function.
  • gam_ipw.R: Functions for estimating exposure response function with generalized additive models and inverse probability weights. Includes a sandwich variance estimator for the point-wise confidence intervals of the ERF, which incorporates/propagates uncertainty from the fitted calibration weights.
  • gam_dr.R: A doubly-robust implementation of the GAM ERF estimate similar to the estimator in gam_ipw.R that requires an initial outcome (GAM) outcome model fit. Should be used in tandem with erf_fun.R.
  • erf_fun.R: Implementation of the doubly-robust exposure response function specific to the ecological PM2.5 regression.
  • srf_fun.R: Implementation of the stochastic intervention analysis (useful for obtaining excess events associated with different NAAQS policies).

Data Cleaning and Descriptives

  • data_process.R: Data processing script which aggregates binary responses into strata within ZIP-code years.
  • desriptives.R: Descriptive statistics appearing in Tables 1 and 2 of the manuscript. Additional code for generating the covariate balance plots is also provided here.

Models

  • region_srf: Scripts that fit the region-specific (and whole US) stochastic intervention curves using doubly-robust methods. We use entropy balancing to estimate the IPWs - think of entropy balancing as a type of method of moments estimator whereas the more traditional way of estimating IPWs is with a plug-in estimator.
  • state_srf: A doubly-robust implementation to estimate the shift responses (stochastic interventions).
  • erf_sim.R: Simulation study to demonstrate the effectiveness of the exposure response estimator.
  • srf_sim.R: Simulation study examining accuracy of the stochastic interventions.
  • Plots/plot_region.R: Script for generating the main plots that appear in the manuscript.
  • Plots/plot_state.R: Script for generating state-specific outcomes.
  • Plots/plot_eco.R: Script for plotting sensitivity analysis results of the exposure response curve. Plots include a comparison of the overall ERF using an alternative exposure assessment.

causal-eco's People

Contributors

kevjosey avatar pdez90 avatar

Stargazers

Rudha Khudhair avatar

Watchers

 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.