Data and software from various studies can be downloaded from this site. This material has been developed under NSF grants SES-8720731, SES-8920752, SBR-9308301, SBR-9707771, and SES-0076072, and is freely available to the public. The files are all stored in *.ZIP format, so to use them after you have downloaded the file you will need to use the PKUNZIP utility. If you do not have PKUNZIP, you can download it from PKWARE
To download the programs and data below, just click on the item you want and indicate what directory on your computer you want the file stored in. Suppose you dowload the file MARKOV1.ZIP and put it in the directory C:\JDH. You should then type PKUNZIP -d C:\JDH\MARKOV1.ZIP C:\JDH . This should create a series of files and subdirectories under the directory C:\JDH.
Note that in order to download a file, your own server needs to be registered for reverse name lookup. If you are unsuccessful, email your request to jhamilto@weber.ucsd.edu and I will send by email, or send your postal address and we will send a diskette through the mail.
Available data and programs
Time Series Analysis. Data and software to replicate examples from my textbook.
Oil shock of 2007-08. Data and software to replicate any of the results in my paper, Causes and Consequences of the Oil Shock of 2007-08.
Normalization. Download software to reproduce results from the paper Normalization in Econometrics coauthored with Dan Waggoner and Tao Zha.
Flexible nonlinear inference. Download data and software to reproduce results from the papers "A Parametric Approach to Flexible Nonlinear Inference" and "What is an Oil Shock?" Click here to download copies of the working papers.
Kalman filter. Programs for the Kalman filter and smoother and the real interest rate data analyzed in the Handbook of Econometrics, Vol. 4.
Index of leading indicators. Data and software used in "What Do the Leading Indicators Lead?", Journal of Business January 1996. Includes real-time releases of the index of leading indicators.
Analysis of futures prices during the Great Depression. Data and software used in the study from American Economic Review, March 1992.
Analysis of daily federal funds rate. Data and programs used in J. Political Economy, Feb. 1996.
Measuring the liquidity effect. Data and programs used in American Economic Review, March 1997.
Dynamic analysis of the daily balance sheet of the Federal Reserve. Data and programs used in the paper presented at the Carnegie-Rochester conference on public policy, fall 1997.
Yield spread and economic activity. Data and programs used in the paper, "A Re-Examination of the Predictability of Economic Activity Using the Yield Spread," Journal of Money, Credit, and Banking, 2001.
Forecasting the Fed funds target using the ACH model. Data and programs used in the paper, "A Model of the Federal Funds Rate Target." Click here to download copy of the working paper.
Programs for estimation of Markov switching models by numerical optimization. These are written in the GAUSS programming language and require use of the GAUSS numerical optimization procedures. They are written for the numerical optimization protocols from GAUSS version 2.0; other versions of GAUSS use slightly different protocols and you may need to consult your GAUSS manual to make slight changes in the lines that call the numerical optimizers. Note that the GAUSS routines should also run on Ox with the Ox Maximizer. The GAUSS code here estimates a pth-order autoregression with K states. Data are provided for reproducing the analysis of U.S. GNP as in Econometrica, March 1989, and 3-month Treasury bill rates as in J. of Econ. Dynamics and Control, June/Sept. 1988.
Programs for estimation of Markov switching models using the EM algorithm. These are written in the GAUSS programming language. They do not require use of the GAUSS numerical optimization procedures and should work with little or no change on any version of GAUSS, and again can also be run in Ox programming language. This code estimates an N-dimensional vector whose mean and covariance matrix change with the state. Data are provided for reproducing the analysis of exchange rates as in American Economic Review, Sept. 1990.
Programs for specification testing of Markov switching models. These files include specification tests described in Journal of Econometrics, Jan. 1996 and Journal of Business Jan. 1996.
Estimation of Markov-switching ARCH models. Data and software for methods used in J. Econometrics, Sept./Oct. 1994.
Bivariate analysis of SWARCH and Markov-switching autoregression. Data and software for methods used in J. Applied Econometrics, Sept./Oct. 1996.
The data and software provided above have been developed under research supported by the National Science Foundation under grants SBR-97-07771, SBR-93-08301, SES-89-20752, SES-87-20731. Any opinions, findings and conclusions or recommendations expressed in this material are those of James D. Hamilton and do not necessarily reflect the views of the National Science Foundation.