There may be a timing issue in your model or a problem with your parametrization. It seems you have a fiscal rule. In that case, you can try to experiment with the parameters to see whether that alters anything.
Thank you very much Professor for your intervention for my problem.
I ended up solving my problem by rewriting another code because I did not see where the problem was.
The new code works well and I make stochastic shocks but I would like to make a deterministic shock over several years (10 years) to determine a threshold level.
If I’m shocked, I do not see any graphics. Just a table and this message:
All endogenous are constant or non stationary, not displaying correlations and autocorrelation
Is there still an error in the code or I do not understand the result of the deterministic shock?
I do not understand what you are trying to do here. If the variance of the innovations are zero, because you consider a deterministic version of your model, the second order moments are not defined and indeed there is nothing to display. What do you do exactly after the declaration of the model?
Thank you Stephan for your intervention.
I did not specify zero variance. I gave a non-zero variance.
I would like to simulate a deterministic shock over several years (10 years) to determine an optimal level for the components of public spending.
But I do not understand the output I get. I would like to know if this is the end result or it is an error message.
I attach the file.
Thank you again for your interventions. modelcroissance.mod (3.6 KB)
You are still trying to do stochastic simulation (stoch_simul), although you want to simulate under perfect foresight. You need to use perfect_foresight_setup and perfect_foresight_solver. See the manual.
I have another problem.
When I try to make a Bayesian estimate, dynare only displays the priori densities and the following message:
You did not declare endogenous variables after the estimation/calib_smoother command.
error: Some variables are missing (g_c)!
but it does not display the posteriori densities
i attach the data and the file code_final.mod (6.0 KB) donne_flo.m (339 Bytes)
Thank you Professor Stephan.
But in the database, I only have 3 variables dep, g_c and g_i that I have specified. I still do not understand the meaning of the error.
Hi, This function is shipped with Dynare in case you do not have it, the error suggest there is something wrong in your Octave path. Did you install the statistics toolbox from Octave Forge? The missing function is available in this package. To install it, open an Octave shell and do: