Page 1 of 1

Henriksson (2005) - Problem with linearize model.

PostPosted: Mon Aug 22, 2016 3:59 pm
by fpinom
Hi, I'am trying to replicate these paper of Henriksson (2005) http://papers.ssrn.com/sol3/papers.cfm?abstract_id=782644, but I have a doubt about the linearized model that applied the author. In specific, that says: "To solve the model, we linearize it around steady state, where \tilde{x}_t = x_t - \bar{x}" defines a deviation from steady state". So in my usual nomenclature is it in logs, but in my replication I have trouble of definition of variables. In appendix, there are equation in equilbrium and linearized model. My problem is that: I'am confuse with nomenclature for close the model and obtain the results. For example I started with the principal equations, I that equilibrium is necessary, so I put these in model? :

Code: Select all

%----------------------------------------------------------------
% Linearized model
%----------------------------------------------------------------

model(linear);

//First order condition (2.28), (2,29) and (2.30):
c(+1) = c - psi*barc*(lambda*c + mu* m + varphi*l);
m = chi*(R/(R-1))*c;
omega*(l/barl) = (w/barw) - (p_t/barp_t) - (c/barc);

//Linearized budget constraint of household, government and central bank:
(b_h/barp_t) + (b_f/barp_t) + (b_m/barp_t) - (d/barp_t) = (1+r) * ((b_h(-1)/barp_t) + (b_f(-1)/barp_t) + (b_m(-1)/barp_t) - (d(-1)/barp_t)) + y_t - c_t - g_t + barp_n*(y_t - c_t - g_t) + p_n*(bary_t - barc_t - barg_t);

//Non-traded goods market eq. and relationship with net foreign assets:
(f/barp_t) = (b_h/barp_t) + (b_f/barp_t) + (b_m/barp_t) - (d/barp_t);
(f/barp_t) = (1+r)*(f(-1)/barp_t) + y_t - c_t - g_t;

// In whole consumption terms:
(f/barp) = R*(f(-1)/barp) + y_t - c_t - g_t - (R-1)*(barf/barp)*(p/barp);

// Applying the parameters we obtain:
(f/barp) = (1+r)*(f(-1)/barp) + (gamma*barl*((bara_t/bara_n)^(gamma-1))* a_t) - c - r*(1-gamma)*(fbar/pbar)*(a_t/bara_t);

// Forward by one period, and with assumption of parameters we obtain:
(f(+1)/barp) - (1 - psi*barc)*(f/barp) = (1+r)*((f/barp) - (1 - psi*barc*(f(-1)/barp))) + gamma*barl*((bara_t/bara_n)^(gamma-1))*(a_t(+1) - (1 - psi*barc)*a_t) - (c(+1) - (1 - psi*barc)*c) - r*(1-gamma)*(barf/barp)*(1/bara_n)*(a_t(+1) - (1 - psi*barc)*a_t);

//Taking into consideration the FOC, the process for A_t and government expenditure exogenous:

((f/barp) - (1 - psi*barc)*(f(-1)/barp)) - ((f(+1)/barp) - (1 - psi*barc)*(f/barp)) = (1/(1+r))*(gamma*barl*((bara_t/bara_n)^(gamma-1)) - r*(1 - gamma)*(barf/barp)*(1/bara_t))*(1 - rho - psi*barc)*a_t;


Any help is welcome. Thank you. Fernando.

Re: Henriksson (2005) - Problem with linearize model.

PostPosted: Thu Aug 25, 2016 9:11 am
by jpfeifer
In this case, you need to distinguish the level variables that are used for the steady state (the x_t) and the variables in log deviations (the tilde x_t). Your linearized model will be written in terms of the latter. The former will only be used to fix coefficients. Take a look at Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf for examples of this.

Re: Henriksson (2005) - Problem with linearize model.

PostPosted: Fri Aug 26, 2016 12:08 am
by fpinom
Thank you. I will review the document.