We are running a deterministic simulation of our model and if the shock is specified only in the first period everything works fine. However, we want to assess the effect of uncertainty regarding the duration of the shock, e.g. there is a shock in period 1 for sure, with probability p the shock continues in period 2 and with probability 1-p the shock will already be over in period 2, in period 3 the shock is over for sure. Is this possible in a deterministic simulation?
In the code we have Dynare is not able to find a solution for any value of p, only for small enough values of the probability for a continued shock can it compute the perfect foresight simulation. We do not understand why this is the case and appreciate any suggestions on how to fix this. I have attached the model file for reference.Uncertainty.mod (1.5 KB)