I’m looking for some help. The code is based on the work of Grith (2007): Monetary and Fiscal Policy in a Two Country Model with Sticky Prices. There is the following error message when I run the model: "In an assigment A(I) = B, the number of elements in B and I must be the same). It refers to the file “DSGE_Steadystate”.
I would really appreciate if you guys could help.
Thanks a lot.
Your steady state file does not conform to any Dynare rules on how to supply steady state values. Search the forum on how to do this, look at the examples provided with Dynare and check dynare.org/manual/index_20.html.
Jpfeifer, thanks for your response. I have substituted the “DSGE_steadystate” line for “steady(solve_algo=0)”. It computes the steady state values of all variables. But, before the initial value of the posterior, there is another error. If use “mode_compute=5” (Marco Ratto’s mode), the message is:
“Subscripted assigment dimension mismatch”
If I use “mode_compute = 1” (fmincon), the message is:
Your problem in both mod-files is the steady state, which cannot be found. You should put
before
steady;
check;
(Note that you got the order wrong.) It will show you which equations are not satisfied given the initial values (which are 0 if you use model(linear) without an initval block).