Skip to content

Davidvandijcke/DiSCos_stata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DiSCo: Distributional Synthetic Controls for Stata

GitHub release (latest by date) GitHub last commit GitHub issues

🕺 Let's get DiSCo-ing with distributions! This package implements Distributional Synthetic Controls (DiSCo) in Stata, following the methodology developed in Gunsilius (2023). While traditional synthetic controls focus on matching means, DiSCo takes it to the next level by matching entire distributions.

🚀 Features

  • 📊 Match entire outcome distributions, not just means
  • 🎯 Estimate distributional treatment effects
  • 📈 Generate beautiful visualizations
  • 🔄 Bootstrap inference and permutation tests
  • 🎨 Flexible estimation approaches (quantile-based or CDF-based)

💿 Installation

The package will soon be available on SSC. For now, you can install directly from GitHub:

net install disco, from("https://raw.githubusercontent.com/Davidvandijcke/DiSCos_stata/main/src/") replace

For the development version:

net install disco, from("https://raw.githubusercontent.com/Davidvandijcke/DiSCos_stata/dev/src/") replace

🎵 Quick Start

* Load your data
use mydata.dta, clear

* Run DiSCo
disco outcome unit time, idtarget(1) t0(10) graph 

* Get summary statistics
disco_estat

📚 Documentation

After installation, access the help files in Stata:

help disco
help disco_estat
help disco_plot
help disco_weight

For more detailed information, see the accompanying article at https://arxiv.org/abs/2501.07550.

🎪 In Development

This package is actively being developed! Future releases may include (depending on my mood and the weather):

Comments, suggestions, and bug reports are very welcome! Please open an issue on GitHub or email dvdijcke@umich.edu.

🎵 Related Packages

Also check out the R version of DiSCo: CRAN

📝 Citation

If you use this package, please cite:

@article{gunsilius2025disco,
  title        = {disco: Distributional Synthetic Controls},
  author       = {Gunsilius, Florian and Van Dijcke, David},
  journal      = {Manuscript},
  year         = {2025}
}
@article{gunsilius2023distributional,
  title={Distributional Synthetic Controls},
  author={Gunsilius, Florian F},
  journal={Econometrica},
  volume={91},
  number={3},
  pages={1105--1117},
  year={2023}
}
@article{van2024return,
  title={Return to Office and the Tenure Distribution},
  author={Van Dijcke, David and Gunsilius, Florian and Wright, Austin L},
  journal={University of Chicago, Becker Friedman Institute for Economics Working Paper},
  number={2024-56},
  year={2024}
}

💃 Why do the DiSCo?

Because averages are so yesterday! If you're feeling like doing the robot (you're thinkin' bout that synthetic control), and you want your treatment effects to be as varied as your moves on the dance floor, you'll need DiSCo to capture all that distributional groove.

🎉 License

This project is licensed under the MIT License.


Made with 🕺 and 💃 by David Van Dijcke, with a stamp of approval from Florian Gunsilius

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors