Page 1 of 1

some help

PostPosted: Thu Feb 04, 2010 11:47 pm
by huseyinky
Hi,

I am very new, sorry for bothering you. I try to run following code;
Code: Select all
var inf, x, p, s;
varexo einf, ex, ep, es;
parameters alp, alpp, alppp, bet, bett, bettt, lam, lamm, del, dell;
alp=0.54; alpp=-0.004; alppp=0.05; bet=0.47; bett=0.02; bettt=-0.08; lam=0.05; lamm=0.78; del=0.05; dell=0.75;
model(linear);
p = lam+lamm*p(-1)+ep;
s = del+dell*s(-1)+es;
inf = alp*inf(+1)+(1-alp)*inf(-1)+alpp*x+alppp*s+einf;
x = bet*x(+1)+(1-bet)*x(-1)+bett*s+bettt*p+ex;
end;

initval; inf=0; x=2; p=0; s=0; end;
shocks; var einf; stderr 0.009;  var ex;stderr 0.009; var ep; stderr 0.009; var es; stderr 0.009; end;
stoch_simul;


but there is some error like that;

ERROR: example1.mod:1.5-7: syntax error, unexpected INF_CONSTANT

I cannot understand what is wrong with my code. If you help me, I will appreciate with that.

Re: some help

PostPosted: Fri Feb 05, 2010 7:47 am
by SébastienVillemot
Hi

Since Dynare 4.1, you cannot name a variable "inf". This keyword is reserved for infinity. Please rename your variable.

Best