Some help

Hi,

I am very new, sorry for bothering you. I try to run following code;

[code]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+lammp(-1)+ep;
s = del+dell
s(-1)+es;
inf = alpinf(+1)+(1-alp)inf(-1)+alppx+alppps+einf;
x = betx(+1)+(1-bet)x(-1)+betts+betttp+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;[/code]

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.

Hi

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

Best