Giter Site home page Giter Site logo

staggered_synthdid_repo's Introduction

Adapt synthetic difference in differences to staggered treatment timing settings

Code to incorporate staggered treatment adoption (based on appendix from Arkhangelsky et al. 2021) into synthdid package Package can be installed as follows:

devtools::install_github(“synth-inference/synthdid”)

This code is developed for estimating the ATT motivated by the idea from Callaway and Sant’Anna (2021).

The main idea of extending to the staggered treatment timing is to iterate through the SynthDiD algorithm on subsets of the data limited to the never-treated units and each treatment cohort individually, and then obtain a weighted average of each treatment cohort’s individual effects to estimate the aggregate group average treatment effect.

Use property of influence functions for compute variance and covariance estimators.

Standard errors are computed in a more effecient way, based on the influence functions for each observation and treatment cohort. The overall summary parameter’s variance, V_theta, is calculated as follows: V_theta=w’Vw where V is calculated as described in Kahn (2022).

Real-world data application to demonstrate the practical use of staggered synthetic DiD estimation

Winnow_waste_data.csv is used for demonstration where 1,200 commercial kitchens adopted AI-powered waste watcher at different times between Jan 2014 and Aug 2021. Author: Yu Nu ([email protected])

staggered_synthdid_repo's People

Contributors

yunu1210 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.