top of page

JAMES GRAHAM

Code

Heterogeneous agent life-cycle model codes

Codes to produce a range of simple household life-cycle models. Model features include: mortality risk, income risk, borrowing constraints, bequests, exogenous retirement, endogenous retirement. Lecture and codes prepared for the Continuing Education in Macroeconometrics Workshop, 2023.

Cross-walk between zip codes, counties, and metropolitan areas

Data and Python code to create a simple link between multiple levels of geography. Improves upon the NBER cross-walk files by adding zip codes and more accurate CBSA information.  

Clean BLS county-level employment and unemployment data

BLS county-level employment data are incredibly useful, but also incredibly messy to work with. This provides Python code to put the data in a clean panel format. 

Clean Census MSA-level home ownership, home vacancy, and rental vacancy data 

Census home ownership and rental data are also useful but messy data. Data and Python code to put the data in a clean panel format. 

bottom of page