# Initial values in a linearized DSGE

**URL:** <https://forum.dynare.org/t/initial-values-in-a-linearized-dsge/3898>\
**Category:** Dynare help (legacy posts)\
**Created:** [13 May 2014 09:02 UTC](https://forum.dynare.org/t/initial-values-in-a-linearized-dsge/3898 "2014-05-13T09:02:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpap](https://forum.dynare.org/letter_avatar_proxy/v4/letter/g/cdc98d/32.png) [@gpap](https://forum.dynare.org/u/gpap)\
**Post date:** [13 May 2014 09:02 UTC](https://forum.dynare.org/t/initial-values-in-a-linearized-dsge/3898/1 "2014-05-13T09:02:48Z")

</div>

Hello everyone,

I’m computing a linearized DSGE model, close to Leeper, Plante and Traum (2009) [NK fiscal and monetary policies model], for which I have 2 questions:

1. Inserting initial values in the model  
I would like to start my model with an economy in recession so that my output will be below its steady state at its initial value. How would you recommend me to do that? When I insert initial values, my model is not modified.

2. Constraining the Taylor Rule with a Zero Lower Bound: the function max does not work with my model.  
In a log-linearized form, the linearized interest rate is: rhat\_t = log(r\_t) - log(Rss) = log(1) - log(1/beta) = -log(1/beta).  
where r\_t is the gross nominal interest rate and Rss is the steady state interest rate. Hence, I want the deviations to not move below the constraint -log(1/beta). How may I implement this in my model?

Many thanks for your future help!  
[calibration\_NK\_fiscalrules.mod](https://forum.dynare.org/uploads/default/original/2X/2/2dc6b854361189008210fa0cbf866325e91a2990.mod) (1.44 KB)  
[NK\_fiscalrules.mod](https://forum.dynare.org/uploads/default/original/2X/f/ffd1a22a24ba73eceae999fd54a07750bb31ec52.mod) (3.21 KB)

---

<div class="post-metadata">

**Author:** ![gpap](https://forum.dynare.org/letter_avatar_proxy/v4/letter/g/cdc98d/32.png) [@gpap](https://forum.dynare.org/u/gpap)\
**Post date:** [13 May 2014 09:31 UTC](https://forum.dynare.org/t/initial-values-in-a-linearized-dsge/3898/2 "2014-05-13T09:31:11Z")

</div>

My model is a simple one and looks like this:

var y  
c  
r  
pi  
w  
l  
a b d q g tc tw tk tr k z i u\_q u\_b u\_l;

varexo e\_a e\_q e\_r e\_g e\_tc e\_tw e\_tk e\_l e\_b;

parameters beta alpha sigmaC sigmaL  
rho\_r phi\_ry phi\_rpi theta\_p gamma\_p  
rho\_a rho\_q rho\_b rho\_l rho\_g phi\_gb phi\_gy rho\_tc phi\_tcb phi\_tcy phi\_tctw phi\_tctk rho\_tw phi\_twb phi\_twy phi\_twtc phi\_twtk rho\_tk phi\_tkb phi\_tky phi\_tktc phi\_tktw phi\_tr psi PI Q R TC TW TR CY GY WY BY DY KY delta TK Z phi\_rb  
;

%----------------------------------------------------------------  
% 2. Calibration  
%----------------------------------------------------------------  
alpha = 0.3; % share of capital in ouput  
beta = 0.99; % discount factor  
gamma\_p = 0.75;  
theta\_p = 0.75;  
sigmaC = 1.5; % risk aversion consumption  
sigmaL = 2; % labor disutility  
rho\_r = .9; % Monetary Policy Smoothing Parameter  
phi\_ry = .125; % Monetary Policy GDP Growth Target  
phi\_rpi = 1.5; % Monetary Policy Inflation Growth Target  
rho\_a = 0.95; % productivity  
rho\_q = 0.95; % risk premium  
rho\_b = 0.85; % inter-temporal preference  
rho\_l = 0.85; % labor disutility preference  
rho\_g = .9; % Expenditure Policy Smoothing Parameter  
phi\_gb = .2;  
phi\_gy = .1; % Expenditure Policy GDP Growth Target  
rho\_tc = .9; % Tax Policy Smoothing Parameter  
phi\_tcb = .2; % Tax Policy Debt Growth Target  
phi\_tcy = 0.4;  
rho\_tw = .9; % Tax Policy Smoothing Parameter  
phi\_twb = .2; % Tax Policy Debt Growth Target  
phi\_twy = .4; % Tax Policy Debt Growth Target  
rho\_tk = .9; % Tax Policy Smoothing Parameter  
phi\_tkb = .2; % Tax Policy Debt Growth Target  
phi\_tky = 0.4; % Tax Policy Debt Growth Target  
phi\_tr = 0.2;  
psi = 0.25;  
phi\_rb = -0.8;  
phi\_tctw = 0.05;  
phi\_twtc = 0.05;  
phi\_tktc = 0.05;  
phi\_tctk = 0.05;  
phi\_twtk = 0.25;  
phi\_tktw = 0.25;  
delta = 0.025;

% steady states: PI, Q, R, Z, TC, TW and TK are ss variables; BY = bss/yss, WY = wss_lss/yss, GY = gss/yss, DY = dss/yss…  
PI = 1.005;  
Q = 1;  
R = PI/(beta_Q);  
GY = 0.18;  
IY = 0.22;  
KY = IY/delta;  
CY = 1-GY-delta\*KY;  
WY = 1-alpha;  
BY = 0.6;  
TC = 0.183;  
TW = 0.122;  
TK = 0.184;  
TR = 0.195;  
DY = 0.75;  
Z = (1/beta-1+delta)/(1-TK);

%----------------------------------------------------------------  
% 3. Model  
%----------------------------------------------------------------  
model(linear);  
%% Household  
% Euler  
sigmaC\*(c(+1)-c)=r+q+u\_b(+1)-u\_b-pi(+1)+TC/(1+TC)_(tc-tc(+1));  
% Hours supply  
w = sigmaL_l + sigmaC\*c + TW/(1-TW)_tw + TC/(1+TC)tc + u\_l;  
k = (1-delta)k(-1) + deltai;  
l = -w + z + k(-1);  
1/beta(r+q-pi(+1)) = (Z_(1-TK)_z(+1))/(1-delta+(1-TK)Z) - (ZTK_tk(+1))/(1-delta+(1-TK)\*Z);

```
% Intermediary firms
% Production function
y = a + alpha*k(-1) + (1-alpha)*l;
y = CY*c+GY*g+delta*KY*i;
% Price dynamics NKPC backward
pi = gamma_p/(1+beta*gamma_p)*pi(-1) + beta/(1+beta*gamma_p)*pi(+1) + ((1-theta_p)*(1-theta_p*beta))/((1+beta*gamma_p)*theta_p)*(alpha*z+(1-alpha)*w-a);

% monetary policy
r = rho_r*r(-1) + (1-rho_r)*(phi_rpi*(pi(-1)) + phi_ry*(y(-1))) - e_r;

% Debt policy rule
BY*(b-b(-1)) = DY*d;
DY*d = 1/beta*(GY*g-TC*CY*(c+tc)-TW*WY*(tw+w+l)-Z*KY*TK*(tk+z+k(-1))+TR*tr)+BY*((1/beta-1)*b(-1)+r+q-pi(+1));
q = psi*(DY*d(+1)) + u_q;
% Tax policy rules
tc = rho_tc*tc(-1) + (1-rho_tc)*(phi_tcb*b(-1)*BY + phi_tcy*y) + e_tc;
tw = rho_tw*tw(-1) + (1-rho_tw)*(phi_twb*b(-1)*BY + phi_twy*y) + e_tw;
tk = rho_tw*tk(-1) + (1-rho_tw)*(phi_tkb*b(-1)*BY + phi_tky*y) + e_tk;
% Expenditure policy rule
g = rho_g*g(-1) - (1-rho_g)*(phi_gb*b(-1)*BY + phi_gy*y) - e_g;
% Stabilization rule transfers
tr = -phi_tr*(b(-1)*BY);

% Exogenous shocks
a = rho_a*a(-1) + e_a;
u_q = rho_q*u_q(-1) + e_q;
u_b = rho_b*u_b(-1) - e_b; 
u_l = rho_l*u_l(-1) + e_l;

```

end;

%----------------------------------------------------------------  
% 4. Computation  
%----------------------------------------------------------------  
check;  
steady;

shocks;  
var e\_a; stderr 1;  
var e\_q; stderr 1;  
var e\_r; stderr 1;  
var e\_g; stderr 1;  
var e\_tc; stderr 1;  
var e\_tw; stderr 1;  
var e\_tk; stderr 1;  
var e\_b; stderr 1;  
var e\_l; stderr 1;  
end;

stoch\_simul(order=1, irf=40, irf\_shocks = (e\_b, e\_r, e\_g, e\_tc, e\_tw, e\_tk));
