Variable Introducing-

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.

Variable Introducing-

Postby sirene » Sat Jul 20, 2013 11:47 am

Dear all,

I have a problem with code I write. When i try to start, it gives such an error : CC_L is unknown symbol, even though I define what is. moreover, it is one of the endogenous variable .Why does it give such an error? what should i do? thank you for your help in advance!=)

var cc_l,RiRi_l,KK_l,PRPR_l,NiNi_l,YY_l,eg,ez ;
varexo ur,ug,uz ;
parameters alpha,beta,sigma,delta,rho_r,rho_g,rho_z,tao_inf,tao_y,lambda,si,sigma_ur,sigma_ug,sigma_uz;

alpha=0.3;
beta=0.99;
sigma=2;
delta=0.02;
rho_r=0.5;
rho_g =0.7;
rho_z =0.7;
tao_inf=1.5;
tao_y=0.25;
lambda =0.3;
si=0.3;
sigma_ur=0.31;
sigma_ug=0.38;
sigma_uz=1;


model (linear) ;
cc_l=cc-ll;
RiRi_l=RiRi-ll;
KK_l=KK-ll;
PRPR_l= PRPR-ll;
NiNi_l =NiNi-ll
YY_l=YY-ll
cc_l = EXPECTATION (cc_l(+1))- (1\sigma)*(RR_l- EXPECTATION(PRPR_l(+1)))-eg;
RR_l= NiNi_L- EXPECTATION(PRPR_l(+1))==(1-beta*(1-delta))*(sigma*EXPECTATION(cc_l(+1))+(1\1-alpha)*(EXPECTATION(YY_l(+1))-EXPECTATION(KK_l)));
KK_l=(1-delta)*KK_l(-1)+delta\si*(YY_l-(1-si)*cc_l);
PRPR_l= beta*EXPECTATION(PRPR_l(+1))+lambda(sigma*cc_l-(alpha\1-alpha)*(KK_L-YY_L))+ez;
NiNi_l=rho_r*RR_l(-1)+(1-rho_r)*(tao_inf*EXPECTATION(PRPR_l(+1))+tao_y* YY_l)+er;
eg=rho_g* eg(-1)+ug;
ez=rho_z*ez(-1)+uz;

END;

initval;

cc_l=0;
RiRi_l=0;
KK_l=0;
PRPR_l=4;
NiNi_l=2;
YY_l=0;
eg=0;
ez=0;
ur=0;
ug =0;
uz =0;

END;



steady ;
check;

shocks;

var ur= sigma_ur^2;
var ug= sigma_ug^2;
var uz=sigma_uz^2;

stoch_simul(linear,irf=20);

End;
sirene
 
Posts: 14
Joined: Fri Jul 19, 2013 1:16 pm

Re: Variable Introducing-

Postby jpfeifer » Sat Jul 20, 2013 12:44 pm

Dynare complains that the right hand side of the definition is unknown. You did not define cc or ll. Moreover, the stoch_simul command does not belong into the shocks-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

Re: Variable Introducing-

Postby sirene » Sat Jul 20, 2013 2:58 pm

thank you for your reply . I misunderstood the some concept :/

How should i write already the log-linearized model ?

In the manual, it is written that repeating a letter for a variable means di fference from steady state. Is this way true?

Thank you in advance:)
sirene
 
Posts: 14
Joined: Fri Jul 19, 2013 1:16 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests