``Optimal Fiscal and Monetary Policy in a Medium-Scale Macroeconomic Model" by Stephanie Schmitt-Grohe and Martin Uribe
Expanded Version
NBER Macroeconomics Annual 2005 Version
Slides

Matlab code

Note: (1) Matlab's Symbolic Math Toolbox is required. (2) The code for solving DGE models to first order provided at the bottom of this page is required

Ramsey Steady State
ramsey_ss.m (Run this program to produce table 2 line 1 of the paper. Other lines of table 2 can be generated by appropriately changing parameter values in deep_parameters.m)
deep_parameters.m
constraints.m
allsyms.m

Optimal Fiscal and Monetary Policy Under Income Taxation
ramsey_moments.m (run this program to produce table 3 of the paper)
deep_parameters.m
ramsey_ss.m
constraints.m
ramsey_eqm.m
allsyms.m
ramsey_dynamics.m

First-order approximation
gx_hx.m
solab.m (by Paul Klein)
qzswitch.m (by Chris Sims)
qzdiv.m (by Chris Sims)