model of Gali and Monacelli need help

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.

model of Gali and Monacelli need help

Postby selima » Sun Jul 14, 2013 5:34 pm

Good evening here is the code of Gali et monacelli 2005 , I added the equation 6,7,8
/6 the domestic inflation based taylor rule
//7 The CPI inflation-based Taylor rule (CITR, for short)
//8 the exchange rate peg (PEG, for short)

I obtain this message
Starting Dynare (version 4.3.2).
Starting preprocessing of the model file ...
Substitution of endo leads >= 2: added 6 auxiliary variables and equations.
Substitution of endo lags >= 2: added 11 auxiliary variables and equations.
ERROR: There are 39 equations but 36 endogenous variables!

??? Error using ==> dynare at 114
DYNARE: preprocessing failed

Can you help me please?
Attachments
NK_GM052.mod
(9.06 KiB) Downloaded 274 times
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm

Re: model of Gali and Monacelli need help

Postby donihue » Tue Jul 16, 2013 12:25 pm

You need to get rid of the duplicate equations for "r" (ie, one of 6 or 7) and "x" (ie, one of 1 or 5). If you do so, the model runs.
Regards
Donihue
donihue
 
Posts: 34
Joined: Mon Sep 12, 2011 1:12 pm

Re: model of Gali and Monacelli need help

Postby selima » Thu Jul 18, 2013 11:55 am

thank you very much for your advice
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm

Re: model of Gali and Monacelli need help

Postby donihue » Fri Jul 19, 2013 8:32 am

I see from another message that you still have problems with this model.

If you write it as below, for example as the PEG version, it works:

x = x(+1) - sigma^(-1)*( r - pih(+1) - rnat) ; //1 New IS Curve of SOE, equ. (37) in the paper
rnat = -sigma*tau*(1-rhoa)*a + alpha*sigma*(theta+xi)*(rhoy-1)*ystar; //2 def. of nature rate of interest rate of SOE,
pih = beta * pih(+1)+ kappa*x; //3 Philips Curve of the SOE, equ. (36) in the paper
ynat = tau*a + alpha*xi*ystar; //4 def. of nature level of output of SOE, equ. (35) in the paper
x = y - ynat; //5 def. of outout gap of SOE
//r = rho + phipi*pih; //6 the domestic inflation based taylor rule
//r = rho + phipi*pi; //7 The CPI inflation-based Taylor rule (CITR, for short)
e = 0; //8 the exchange rate peg (PEG, for short)
y = ystar + sigma^(-1)*s; //9 wedge between domestic and world output, equ (29)
pi = pih + alpha*(s-s(-1)); //10 wedge (gap) between domestic and CPI inflation, equ (14)
pi = p - p(-1); //11 def. of CPI inflation
pih = ph - ph(-1); //12 def. of domestic inflation (PPI)
s = s(-1) + e - e(-1) + pistar - pih; //13 from def. of TOT, first difference of equ (15), pi_star=0
//r = e(+1) - e; //14 not include here, Uncovered Interest rate Parity, set world interest rate to zero(see p724), equ (19)
pistar = 0; //15 foreign inflation is set to be zero
a = rhoa*a(-1) + a_; //17 exogenous process of productivity in SOE,
ystar= rhoy*ystar(-1) + ystar_; //18 exogenous process of world output,


Regards
Donihue
donihue
 
Posts: 34
Joined: Mon Sep 12, 2011 1:12 pm

Re: model of Gali and Monacelli need help

Postby selima » Sat Aug 03, 2013 3:33 pm

thank you very much it works :)
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm

Re: model of Gali and Monacelli need help

Postby Violeta Teitelbaum » Tue Mar 11, 2014 9:15 pm

thank you very much for your advice
Violeta Teitelbaum
Violeta Teitelbaum
 
Posts: 1
Joined: Tue Mar 11, 2014 9:10 pm

Re: model of Gali and Monacelli need help

Postby jpfeifer » Fri May 19, 2017 5:28 pm

A replication file for the Gali/Monacelli (2005): Monetary Policy and Exchange Rate Volatility in a Small Open Economy", Review of Economic Studies 72, pp. 707-734 is available at https://github.com/JohannesPfeifer/DSGE_mod
------------
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


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 12 guests