some help

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.

some help

Postby huseyinky » Thu Feb 04, 2010 11:47 pm

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.
huseyinky
 
Posts: 1
Joined: Thu Feb 04, 2010 11:41 pm

Re: some help

Postby SébastienVillemot » Fri Feb 05, 2010 7:47 am

Hi

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

Best
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

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