what's wrong with my program?

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

what's wrong with my program?

Postby condmn » Sun Apr 19, 2015 2:03 am

rho_x had been defined,but the result is this:
Starting Dynare (version 4.4.3).
Starting preprocessing of the model file ...
WARNING: wrong.mod:3.12-69: Symbol sig_z declared twice.
ERROR: wrong.mod: line 22, cols 31-35: Unknown symbol: rho_x

Error using dynare (line 174)
DYNARE: preprocessing failed

below is my program:
var y,x,g,r,pi,a,e,z;
varexo eps_r,eps_a,eps_e,eps_z;
parameters beta,omega,psi,rho_pi,rho_g,rho_a, rho_e,sig_r,sig_z,sig_z,sig_e;


beta=0.09;
rho_pi=0.3597;
rho_a=0.9470;
sig_e=0.0012;
psi=0.1;
rho_x=0.0347;
rho_e=0.9625;
sig_z=0.0109;
omega=0.0617;
rho_g=0.0000;
sig_a=0.0405;
sig_r=0.0031;

model(linear);
x=x(+1)-(r-pi(+1))+(1-omega)*(1-rho_a)*a;
pi=beta*pi(+1)+psi*x-e;
r=r(-1)+rho_pi*pi+rho_g*g+rho_x*x+eps_r;
x=y-omega*a;
g=y-y(-1)+z;
a=rho_a*a(-1)+eps_a;
e=rho_e*e(-1)+eps_e;
z=eps_z;
end;
steady;
shocks;
var eps_a=sig_a^2;
var eps_e=sig_e^2;
var esp_z=sig_z^2;
var eps_r=sig_r^2;
end;
stoch_simul;
I just don't know why,please give me help,thanks!
condmn
 
Posts: 4
Joined: Thu Apr 16, 2015 7:50 am

Re: what's wrong with my program?

Postby condmn » Sun Apr 19, 2015 2:12 am

the problem is solved!
condmn
 
Posts: 4
Joined: Thu Apr 16, 2015 7:50 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 8 guests