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;