Datasets and Simulation#
ModernDiD includes built-in datasets for examples and benchmarking, as well as data generation functions for simulation studies and scalability testing.
Built-in Datasets#
Load the County Teen Employment dataset for multiple time period DiD analysis. |
|
Load the NSW (National Supported Work) demonstration dataset. |
|
Load the EHEC dataset for Medicaid expansion analysis. |
|
Load the Engel household expenditure dataset. |
|
Load the Favara and Imbs banking deregulation dataset. |
|
Load the Cai (2016) agricultural insurance dataset. |
Simulation Functions#
Functions for generating synthetic DiD and DDD panel data with known treatment effects, useful for Monte Carlo experiments and testing.
Simulate panel data for difference-in-differences with continuous treatment. |
|
Generate configurable staggered DiD data for stress-testing. |
|
Generate synthetic data for 2-period DDD estimation. |
|
Generate data with staggered treatment adoption for multi-period DDD. |
|
Generate configurable staggered DDD data for stress-testing. |
|
Generate simple DDD panel data with a known treatment effect. |