This repository contains the code for my computational project for Macroeconomics with Heterogeneous Households. It includes scripts to generate IRFs for various types of MIT shocks.
To obtain the IRFs for different types of shocks, follow these instructions:
-
TFP Shock:
- Run
ge_ayagari_irf.m
- Set
param.tfpshock_size = -0.05
- Keep other
shocksize
values at 0 - Change
plot_path
to your local directory
- Run
-
Discount Rate Shock:
- Run
ge_ayagari_irf.m
- Set
param.discountshock_size = -0.001
- Keep other
shocksize
values at 0 - Change
plot_path
to your local directory
- Run
-
Preference Shock:
- Run
ge_ayagari_irf.m
- Set
param.preferenceshock_size = 0.001
- Keep other
shocksize
values at 0 - Change
plot_path
to your local directory
- Run
-
Borrowing Constraint (approximated with asset quality):
- Run
ge_ayagari_irf_borrowlimit2.m
- Change
plot_path
to your local directory
- Run
- Ensure that all parameter changes are reverted back to their original values after running each script to avoid conflicts.
Considering that the majority of the code is sample code provided in class, please let me know if I should keep the repository private to avoid potential issues with academic integrity and copyright.