Hello everyone, I’m a graduate student still in the early stages of my studies. I’ve encountered some issues while attempting to reproduce Miao(2023)'s research code on bank runs. Currently, I’ve simplified the model to run deterministic simulations without bank runs, but I’m unsure how to proceed when calculating the recovery path after a bank run.
The original method assumes a run occurs in period J. It makes an initial guess for the predetermined variables in period J (setting the steady-state variable for banks to 0 in the first iteration), then calculates the recovery path for period J+1. This path value is fed into the algorithm for updates, repeating until the norm of the vector values in the last two iterations falls below a specific threshold, at which point the computation terminates.
Therefore, I set the initial guess values for the exogenous variables according to the original specification. Additionally, I added a condition NJ+1=Nnew to the original non-run equilibrium. Here, I referenced Gertler (2015) by introducing a shock. In the deterministic simulation, the shock value Nnew is applied to the net worth equation. However, the deterministic simulation consistently fails, and I am unsure where the problem lies. What should I do?
data.mat (2.2 KB)
miao.mod (6.3 KB)