View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

4.8 | 5 ratings Rate this file 20 Downloads (last 30 days) File Size: 266 KB File ID: #25871 Version:
image thumbnail

Using MATLAB to Develop Macroeconomic Models


Bob Taylor (view profile)


17 Nov 2009 (Updated )

Analyze a stylized version of the Smets-Wouters model for the United States economy.

| Watch this File

File Information

Slides, software, and data for the MathWorks webinar, "Using MATLAB to Develop Macroeconomic Models." The file contains a file moneydemo.pdf with slides for the webinar and a collection of MATLAB scripts and helper functions to perform a number of macroeconomic analyses. The main script is called moneydemo.m. Instructions and some suggestions for tweaking the MATLAB code are in the file readme.txt.

Required Products Econometrics Toolbox
Financial Toolbox
Statistics and Machine Learning Toolbox
MATLAB release MATLAB 7.9 (R2009b)
Other requirements To obtain live data from the St. Louis Federal Reserve, it is also necessary to have the Datafeed Toolbox.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
03 Sep 2015 Bob Taylor

Bob Taylor (view profile)

The FRED URL has changed. Replace the line:
c = fred;
with the line:
c = fred('');
and the script will work properly.

Comment only
02 Jan 2013 David

David (view profile)

18 Jun 2012 Chuanqi


17 Oct 2011 Gustavo Inouye

excelent, thanks

Comment only
24 Sep 2011 Lars

Lars (view profile)

24 Sep 2011 Lars

Lars (view profile)

11 Nov 2010 xiaoxiao dongfang

The impulse response graph that the above showed is a 3-dimension, but I just need a 2-dimensional impulse response. could you make some adjustments?


Comment only
10 Nov 2010 Bob Taylor

Bob Taylor (view profile)

It would take a little effort set up a variance decomposition. Some of what you might need, however, is already in the code in vgxpred so I would suggest looking at the code as a start (particularly the lag operator C and the subsequent loop).

Comment only
10 Nov 2010 xiaoxiao dongfang

It is very good, in addition to impulse response, could you construct variance decomposition?

Comment only
03 Dec 2009 Xing

Xing (view profile)

01 Sep 2016

Updated license

Contact us