Stock and Watson (1998) Replication files (see the SW1998 pdf file for details on the paper). This runs on Matlab version R2023a with the following toolboxes installed.
- Econometrics Toolbox
- Optimization Toolbox
- Parallel Computing Toolbox
- Statistics and Machine Learning Toolbox
- Symbolic Math Toolbox
PS. The Parallel Computing & Symbolic Math Toolbox are not needed. Most likely it is only the Optimization Toolbox that is required.
Zip download or clone the SW1998 directory to your local machine. Then, simply run the 'SW1998_MUE_replication.m' by pressing F5 (or the run button), and it should work. Let me know if there any problems.
- Install Ghostscript for Windows from https://ghostscript.com/download/.
- Edit
localFunctions/print2pdf.mso thatGSversionand theGSpath point to your installedgswin64c.exe(orgswin32c.exe). - Without Ghostscript the script still saves EPS files, but PDF copies will not be produced.
db, sthlm, 28.10.2025.