I have coded an RBC model with financial friction. I can run the code and get the IRFs but I cannot get the second moments. Instead I get dynare message ‘All endogenous are constant or non stationary, not displaying correlations and auto-correlations’.
When you set irf=2000, you will see that your financial shock has permanent effects. Thus, there is a unit root in your model and the unconditional second moments do not exist. As Dynare says, all variable are non-stationary
I do not see your point in my code. The IRFs are set to 20 periods (irf=20). Therefore what do you think might be the problem with the code causing non-stationary variables?