error 174

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.

error 174

Postby tahmin » Mon Dec 22, 2014 12:38 pm

hi friends
When I run my model; appear this error:
Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Starting Dynare (version 4.4.3).
Starting preprocessing of the model file ...
ERROR: a.mod: line 38, cols 1-7: Unknown symbol: initval

??? Error using ==> dynare at 174
DYNARE: preprocessing failed

what's problem?

it's my code:

var c R w l y a k mc pi or g i mou;

varexo e_a e_or e_g e_mou;

parameters beta delta Rbar eta alpha roha rohor rohg c_y i_y g_y or_y rohmou omega landa;

beta=0.9648;
delta=0.014;
Rbar=0.45;
eta=2.2156;
alpha=0.4278;
roha=0.95;
rohor=0.6;
rohg=0.75;
c_y=0.45;
i_y=0.25;
g_y=0.3;
or_y=0.45;
rohmou=0.85;
omega=0.7836;
landa=0.58;

model(linear);
c=beta*(1-delta+Rbar)-beta*(Rbar)*(R(+1)-pi(+1));
w=eta*l+c;
y=a+alpha*k+(1-alpha)*l;
l=y-a+(alpha)*(R-w);
k=y-a+(1-alpha)*(w-R);
a=roha*a(-1)+e_a;
mc=-a+(alpha*R+(1-alpha)*w);
pi=(((1-landa*beta)*(1-landa))/landa)*mc+beta*pi(+1);
or=rohor*or(-1)+e_or;
g=rohg*g(-1)+e_g;
k=(1-delta)*k(-1)+delta*i;
y=c_y*c+i_y*i+g_y*g-or_y*or;
mou=rohmou*mou(-1)+omega*e_or+e_mou;

initval;
c=0; w=0; y=0; l=0; k=0; a=0; mc=0; pi=0; k=0;
end;
steady;
check;

shocks;
var e_or; stderr 0.1;
end;

stoch_simul(periods=1000, irf=30);

thanks
tahmin
 
Posts: 37
Joined: Wed Dec 04, 2013 9:48 pm

Re: error 174

Postby jpfeifer » Mon Dec 22, 2014 1:18 pm

There is an
Code: Select all
end;
missing to close your model-block.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests