This project demonstrates how to estimate market demand and simulate mergers, designed as a teaching tool for master's students in the University of Wisconsin–Madison Economics program.
This project estimates demand and simulates the merger process between airlines.
- src/: Code that downloads, cleans, and estimates demand.
- data/: Input data files (airline data, routes, financial data)
- raw/: Raw data from sources
- processed/: Processed data from functions
- doc/: Useful documentation and screenshots for running example and outputs.
- secured_keys/: This folder must contain a JSON file (api_keys.json) used to access FRED and Census if necessary.
- Run data downloads .py files, see instructions (Run: download_db1b.py)
- Preprocess downloaded data: processing_data.do
- Demand estimation: demand_estimation.do
- Merger simulation
- Python 3.x
- Required packages listed in requirements.txt
- Stata 17
For detailed information about specific files, please refer to inline documentation.