***** Overview of Our Data and Programming Codes *****

              Written by Naoki Wakamori and Angelika Welte


This MS15-061Program folder consists for two subfolders
   i. StataCode, and
  ii. MatlabCodes.
The former contains MS15061datacleaning.do, while the 
latter contains some subsubfolders. respectively. 


First, please obtain three files from the Bank of Canada. 

  (1) 09-021804-01sq-postclean.dta
  (2) 09-021804-01dsi-postclean.dta
  (3) rewards.dta

and put them into the StataCode folder. Since the data are proprietary
 to the Bank of Canada, please contact the Bank of Canada directly
 to obtain it (under bfung@bankofcanada.ca).  Once you have obtained and 
placed the data in the StataCode subfolder, then please run 
"MS15061datacleaning.do" to obtain 

  (a) Tables 1, 2, 3, 10 and Figures 1, A1 and A2, and 
  (b) several csv files (to run .m files in MatlabCodes)

These csv files are automatically generated in the subfolder, 
called EstimableData, under MatlabCodes. Then, please go to 
MatlabCodes/Estimation/version45 or other versions of the 
model. Each folder has one main file which gives you the 
results for each model. Running m files generage the results 
and with these results, you can also run simulations,
which give you Tables 5, 6, 7, 8, 9, 11, A1, A2, and A3. 
For a more detailed explanation for this procedure, please 
read readme.txt in MatlabCodes. 
