Hello, I am working with a Dynare code based on Professor Johannes Pfeifer’s replication of Jordi Galí and Tommaso Monacelli (2005), “Monetary Policy and Exchange Rate Volatility in a Small Open Economy.”
I introduced a monetary policy shock with an AR(1) process in the Taylor rule.
I am aiming to 1. Estimate parameters for the model 2. Forecast inflation rates
For the var_obs
block, I included the following variables: Inflation rate, Real interest rate, Real GDP per capita, Exchange rate, Real consumption (quarterly frequency)
Inflation rate and real interest rate: I first removed the seasonal component from the price index. Then, I constructed the inflation rate using the formula (p_{t} - p_{t-1}) / p_{t-1}. I derived the real interest rate as the nominal interest rate minus the inflation rate.
Real GDP per capita, exchange rate and real consumption: 1. Removed seasonal components. 2. Applied logarithmic transformations. 3. Detrended using the HP filter.
While the modified model runs fine for basic simulations, I encounter the following issue when using var_obs
and attempting to estimate parameters:
dynare Gali_Monacelli_2005_modification.mod
Starting Dynare (version 6.2).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
Found 25 equation(s).
Evaluating expressions…
Computing static model derivatives (order 1).
Normalizing the static model…
Normalization failed with cutoff, trying symbolic normalization…
Could not normalize the static model. Variable p is not in the maximum cardinality matching.
Computing dynamic model derivatives (order 2).
Normalizing the dynamic model…
Finding the optimal block decomposition of the dynamic model…
13 block(s) found:
12 recursive block(s) and 1 simultaneous block(s).
the largest simultaneous block has 6 equation(s)
and 6 feedback variable(s).
terminate called after throwing an instance of ‘std::filesystem::__cxx11::filesystem_error’
what(): filesystem error: cannot rename: Input/output error [+Gali_Monacelli_2005_modification] [Y0EJwTZbOk]
Preprocessing time: 0h00m02s.
Error using dynare (line 297)
Dynare: preprocessing failed
I have checked adding the monetary policy innovation does not introduce errors when I run the model without observed variables. So I suspect that the observed variables (var_obs
) are causing the problem, possibly due to incorrect data preparation or specification in the .mod
file.
Any guidance on identifying and resolving this issue would be greatly appreciated!
Thank you!
Gali_Monacelli_2005_modification.mod (8.2 KB)
processed_data.csv (9.4 KB)