This repository contains the code and data of the paper "Exchange Rate Dynamics and the Central Bank’s Balance Sheet" by Guillermo Gallacher, Camilo Granados and Janelle Mann (Journal of International Money and Finance, October 2024). Published version here
There are two main folders Code and Data.
The code is written in R, Matlab, and RATS.
- You need to download the IMF-IFS full dataset (raw data not included here due to size), as well as Argentina's informal exchange rate from UCEMA-CEA (or use the raw data included in Data/Input folder).
- Our scripts clean and merge such databases, and then create relevant variables. The output of such scripts is the main data used in the paper and is available in here .
- Run the plot scripts in the
Code/data_imf_ifssubfolder to generate Figures 1, 2 and A3; and Table 1 and A6.
- Download and unzip 'Unit Root Tests'
- Run 20230221 Unit Root Results.prg in Rats.
- Download and unzip 'Cointegration Analysis'.
- Install the Econometrics Toolbox for Matlab.
- Set the Current Folder in Matlab to 'Cointegration Analysis'. Add folder 'Sephton and Mann' to path.
- Run driver.m in Matlab.
- From
VARsinCodedownload and runcer_VARs_replic.Rin R. The code generates the following plots: Figure 3, Figure A2. It also generates the tables A4 and A6. Additionally, it generates objects namedvarCOUNTRYCODEcontaining all the models' results, including the cointegration results used for generating Table 3 and Table A5. To query for a particular country call the object for the country of interest by changing the COUNTRYCODE part of the object with the ISO3 corresponding code (e.g.,varCOLfor the VAR with Colombian data). - For tables A3, A4: run
cer_VARs_withExternalLiabilities_replic.R. The plots will be saved in the local working folder. The file also generates other set of results for these additional models that are not shown on the paper.