Hello there,
I am trying to replicate the results in Müller et al. (2022) in Dynare. Additionally, I want to add stock prices to test something further. To do so, I derived the non-linear Model and want to set up the dynare file for the non-linear version of the model. I think this is the most common approach to model stock prices since it is often recommended by Prof. Pfeifer in this forum (see for example the Jermann 1998 model on his guthub page). The model itself is basically the Gali and Monacelli (2005) model with some slight modifications. First, I normalize P_t^* and Y_t^* as in Müller et al. (2022). Second, the production function is simplified so that \alpha is one. Third, I use the firm problem as in Müller et al. (2022). Hence, production Y_t does not appear in the auxiliary variables but consumption, which is uncommon but in line with the model I try to replicate.
If something is still confusing, I might forgot it and I will happily explain it afterward.
Coming to my problem. The mod file is attached. I receive the following error:
The generalized Schur (QZ) decomposition failed. For more information, see the documentation for Lapack function dgges:
info=15, n=13. You can also run model_diagnostics to get more information on what may cause this problem.
From what I have read in this forum, it is difficult to say where this error stems from. I appreciate every help I can get.
P.S. I also think that I overcomplicate the stock pricing incorporation into the model. The authors in Müller et al. (2022) also provide the code and maybe there is a simpler way to introduce stock prices. I want to simulate data afterwards via a VAR-DSGE mapping and test the sign restriction approach with previous filtering of stock price movements to interest rate surprises as in Jarocinski and Karadi (2022). So, I need a proxy for stock prices or any other signal that transmits information about the true fundamentals of the interest rate surprises. I know this is a lot to ask for but maybe someone comes up with a spontaneous idea how to simplify the model since I am new to Dynare and DSGE modeling in general.
Thanks in advance and happy weekend to everyone reading this!
Best
LS
minExample.m (1.1 KB)
dynare_main_nonlinear.mod (7.9 KB)