Page 1 of 1

Gali and Blanchard (2010)

PostPosted: Sun Apr 26, 2015 8:36 am
by Zeinab
Dears :)

I try to replicate the model of Gali and Blanchard (2010) and try to evaluate the welfare loss under second order approximation. but there are some errors in the code. I don't know where is the mistake., if you could help me please? Actually, I am new user in DYNARE

thanks much much.

Re: Gali and Blanchard (2010)

PostPosted: Sun Apr 26, 2015 8:45 am
by jpfeifer
1. There is a semicolon missing at the end of the parameter definition after gdelta.
2. In the definition of rho the brackets of the log are missing
3. The definition of xi0 has a bracketing error.

Just follow the displayed lines in the error messages.

Re: Gali and Blanchard (2010)

PostPosted: Sun Apr 26, 2015 8:55 am
by Zeinab
Dear jpfeifer,

Thanks much, could I ask if I want to evaluate welfare with second order approximation. could you tell me the starting point for doing that?

Thanks again

Re: Gali and Blanchard (2010)

PostPosted: Sun Apr 26, 2015 9:46 am
by jpfeifer

Re: Gali and Blanchard (2010)

PostPosted: Tue Apr 28, 2015 6:56 pm
by Zeinab
Dear professor jpfeifer,

I try a lot and follow all the errors to rectify. could you please tell me where is the problem.

Thanks much

Re: Gali and Blanchard (2010)

PostPosted: Tue Apr 28, 2015 7:46 pm
by jpfeifer
Code: Select all
A*N         = Y;                                                           //Production function (from part of intermediate good firms)

is not a correct assignment. I must be
Code: Select all
Y=A*N;                                                           //Production function (from part of intermediate good firms)

Re: Gali and Blanchard (2010)

PostPosted: Tue Apr 28, 2015 8:22 pm
by Zeinab
sorry for taking this time, I do as you mention. but there is an error includes:
Y is not a parameter !
even I put in the variable, I know isn't parameter. how I can solve this problem.

Thanks a lot

Re: Gali and Blanchard (2010)

PostPosted: Fri May 01, 2015 6:27 pm
by jpfeifer
You deleted the mod-file, so it's impossible to tell.

Re: Gali and Blanchard (2010)

PostPosted: Fri May 08, 2015 8:14 am
by Zeinab
Dear Professor,
Could I ask If I want to transform the Phillips Curve from Linear to non- linear equation (in levels). I write the equation which I had. I follow some posts on the forum. but I couldn't understand what's the steps to transform, can you help me with this point? Thanks a lot

π_t = βE_t {π_(t+1) }-K_0 u_t+K_L u_(t-1)+K_f E_t {u_(t+1) }-λ γΦ (a_t )

Re: Gali and Blanchard (2010)

PostPosted: Fri May 08, 2015 8:27 am
by federico