Hi,
Can anyone help please?
I am trying to solve the stochastic RBC example model from Chapter 3 of the Dynare User Guide (by Tommaso Mancini Griffoile) but I cannot. What I did is define the steady state values (yss, css, kss etc) and I included the steady state equations in the .mod file. I also log linearized the equations in the model. However, I am not getting to simulate the model.

I have attached the file (which I adjusted slightly). The original file can be found in the User Guide (chapter 3) and also in the models folder under UserGuide in your installation of Dynare (the file name is RBC_Monop_JVC.mod).

Any assistance will be greatly appreciated. Thanks. rbctest_post.mod (1.79 KB)

yss = kss^alpha*(1-alpha);
css = 1/(beta+betarss-betadelta);
kss = alpha/(1-alpha)wsslss*1/rss;
iss = kss-(1-delta)kss;
lss = 1-(css/wss)psi;
wss = (1-alpha)yss/lss((epsilon-1)/epsilon);
rss = alpha(yss/kss)((epsilon-1)/epsilon);
zss = 0;[/code]
is not a simultaneous equation system that Dynare solves. Rather, it is usual Matlab code. This does not work, because you use kss to define yss, but kss is only computed three lines later. If you execute the above lines as Matlab code, you will see that all numbers are NaN. This part of the code outside the model block has to be computable in the order entered in the mod-file.

No. I am saying you must compute your steady state in terms of the deep parameters. You must not enter circular code that uses undefined variables. You cannot use

yss = kss^alpha*(1-alpha);
css = 1/(beta+beta*rss-beta*delta);
kss = alpha/(1-alpha)*wss*lss*1/rss;
The first line uses kss to compute yss. But what is kss and how should Dynare know? It is only computed two lines later!