I am receiving this error message " ERROR: in the 'steady_state' block, variable 'theta2' is undefined in the declaration of variable 'varrho "
here it is my steady state block
- Code: Select all
steady_state_model;
% Asset Markets
varrho=exp((1-tauk)*rk+theta2*((1-tauh)*rh-(1-tauk)*rk)-delta+ (((1-gamma)/2)*(theta2)^2)*sigmat^2 +(0.5)*(theta2)*(1-theta2)*sigmat^2);
shr=0;
ex1=0;
ex2=0;
Rap = Rf^(1-gamma);
theta1=0;
theta2=((1-tauh)*rh-(1-tauk)*rk)/(gamma*(sigmat^2));
% Optimal choice
u=1-(beta^eps)*varrho^(eps-1);
u=v^(1-(1/mu));
k=(1-theta2)*(1-u)/(1+gr)-b;
h=theta2*(1-u)/(1+gr);
kh=k/h;
R=(1-theta2)*Rk+theta2*Rh;
Rk=1+(1-tauk)*rk-delta;
Rh=1+(1-tauh)*rh-delta;
Rf=Rk;
%% Average growth rate
gr=R*(1-u);
%% Supply side
rk=exp(A)*alpha*kh^(alpha-1);
rh=exp(A)*(1-alpha)*kh^(alpha);
y=exp(A)*(kh^alpha)*h;
b=((gov-tauk*rk*k-tauh*rh*h)/(gr-(1-tauk)*rk+delta));
gov=p*y;
A=ln(A_bar);
sigmat=sigma_y/theta2;
end;
Any ideas on what's wrong ?
many thanks