The files replicate Wong, Forthcoming "Do Inflation Expectations Propagate the Inflationary
Impact of Real Oil Price Shocks?: Evidence from the Michigan Survey," Journal of Money, Credit, and Banking

1. DATA
The raw data is in data.csv
The order of the data is in oil price, CPI Price Level, 1-yr-ahead expectations, 5-10-year ahead expectations
The sample is December 1982 (because CPI is first differenced) to March 2015.

2. GRANGER CAUSALITY TESTS
Run Table1.m to replicate the various Granger Causality tests in Table 1.

3. FIGURES
To replicate Figure 1-4 in the paper, first run MAIN_ESTIMATION.m to estimate the various specifications 

Thereafter, 5 result files are generated
The result files are the following
1yr_Baseline   Estimation using 1 year ahead expectations from Jan 1983
5yr_Baseline   Estimation using 5-10 year ahead expectations from  Apr 1990
1yr_early      Estimation using 1 year ahead expectations from Jan 1983 - March 1990
1yr_shorten    Estimation using 1 year ahead expectations from Apr 1990
1yr_SB         Estimation using 1 year ahead expectations till September 2001

The name of the remaining scripts correspond with the Figures in the paper.
The result files will be loaded into the script files to reproduce the figures

I do not provide code support nor am liable for any damage or loss you suffer using my code.
Use at your own risk.    

Benjamin Wong
benjamin.wong@rbnz.govt.nz
Reserve Bank of New Zealand
July 2015