A comprehensive empirical analysis of industry-level skill premiums, capital accumulation, and labor market dynamics using U.S. macroeconomic data from the Bureau of Economic Analysis (BEA), Federal Reserve Economic Data (FRED), and Census Quarterly Workforce Indicators (QWI).
This project investigates the relationship between:
- Capital equipment and structures accumulation by industry
- Skill premiums (skilled vs. unskilled labor wages)
- Labor share of output across industries
- Technology shocks and their impact on labor markets
The analysis combines:
- Multi-language data pipeline (R → Python → Julia)
- Structural economic modeling with GMM estimation
- Industry-level heterogeneity analysis across 60+ U.S. industries
- Automated data ingestion from BEA, FRED, and Census APIs
- Robust ETL pipeline handling industry-specific time series
- Structural estimation using Nelder-Mead optimization
- Rich visualizations of model fit and industry dynamics
- Reproducible workflow with centralized configuration
industry_skill_premium/
├── notebooks/ # Jupyter notebooks for exploration and presentation
│ ├── 01_data_pipeline.ipynb
│ ├── 02_industry_analysis.ipynb
│ └── 03_model_estimation.ipynb
├── scripts/ # Core data processing and estimation scripts
│ ├── data_fetch/ # R scripts for API data fetching
│ ├── data_processing/ # Python ETL scripts
│ └── estimation/ # Julia model estimation scripts
├── data/ # Data directory (raw data not committed)
│ ├── proc/ind/ # Processed per-industry CSVs (for estimation)
│ └── results/ # Estimation results
├── results_examples/ # Sample outputs and visualizations
├── config.py # Centralized path configuration
├── requirements.txt # Python dependencies
└── .github/copilot-instructions.md # AI agent guidance
- Python 3.8+ with pandas, rich, requests
- R 4.0+ with bea.R, fredr, pacman
- Julia 1.6+ with DataFrames, CSV, Optim, Plots, ModelingToolkit
-
Clone the repository
git clone https://github.com/mitchv34/industry_skill_premium.git cd industry_skill_premium -
Install Python dependencies
pip install -r requirements.txt
-
Install R packages (in R console)
install.packages('pacman') library(pacman) p_load(bea.R, fredr)
-
Set up Julia environment
julia --project=. -e 'using Pkg; Pkg.instantiate()' -
Configure API keys
Update the following in your scripts or set environment variables:
Either edit
scripts/get_capital_data.randconfig.pyor set:export CENSUS_API_KEYS_PATH=/path/to/your/api_keys/
The analysis follows a three-stage workflow:
cd scripts/data_fetch
Rscript get_capital_data.rFetches BEA capital stock data and FRED macroeconomic indicators.
cd scripts/data_processing
python process_capital_data.pyTransforms raw CSVs into per-industry analysis-ready datasets.
julia --project=. estimation/do_estimation.jlEstimates structural parameters for each industry using GMM.
Explore the analysis interactively:
- Data Pipeline - Complete data flow from APIs to processed datasets
- Industry Analysis - Deep dive into selected industries with visualizations
- Model Estimation - Walkthrough of the estimation methodology and results
See results_examples/ for:
- Industry-specific skill premium trends
- Model fit diagnostics
- Capital accumulation patterns
- Labor share dynamics
The project employs a structural approach following Krusell et al. (2000) and extensions:
- Production Function: Nested CES with capital-skill complementarity
- Estimation: Generalized Method of Moments (GMM)
- Data: Annual observations 1947-2020 across 60+ industries
- Identification: Industry-level variation in technology shocks and factor inputs
- BEA Fixed Assets: Industry-level capital stocks (equipment, structures, IP)
- FRED: Aggregate price deflators and macroeconomic indicators
- Census QWI: Industry-level employment and earnings by education
This is a research project. If you find issues or have suggestions:
- Open an issue describing the problem
- Fork and submit a pull request with improvements
This project is licensed under the MIT License - see LICENSE file for details.
If you use this code or methodology in your research, please cite:
@misc{industry_skill_premium_2025,
author = {Mitchell Valdes},
title = {Industry Skill Premium Analysis},
year = {2025},
url = {https://github.com/mitchv34/industry_skill_premium}
}Mitchell Valdes
GitHub: @mitchv34
This project showcases end-to-end data science skills: API integration, multi-language pipelines, econometric modeling, and reproducible research practices.