OLG Model with 3 generations

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.

OLG Model with 3 generations

Postby JPLeidenz » Tue Aug 11, 2015 3:46 pm

Hello,

I have been working on an Over-lapping Generations model with three generations and stochastic shocks.

I have struggled while writing the dynare code because of the timing setup and the fact that I have 3 generations optimising each period. So, I came up with a way to write the Euler equations for generations 1 and 2, which is the following:

Code: Select all
(cxi/c1) = cbeta*rho1*(R(+1)/(1 + g))*(cxi/c2(+1));
 
(cxi/c2) = cbeta*rho2*(R(+1)/(1 + g))*(cxi/c3(+1));
 


Being c1, c2(+1) and c3(+2) the consumption of generation 1, 2 and 3 in period 0, 1 and 2.

Im worried that my code could not be optimising for the entire time horizon of an agent (3 periods) but instead in a staggered way.

This has been the only way in which I have fulfilled the Blanchard Kahn Conditions.

Thanks beforehand for all the help.
JPLeidenz
 
Posts: 2
Joined: Tue Aug 11, 2015 3:36 pm

Re: OLG Model with 3 generations

Postby jpfeifer » Fri Aug 14, 2015 4:53 pm

It seems you are using stochastic simulations. In this case, Dynare only solves stationary, recursive problems. You enter the FOCs that have to hold in each period t={0,1,...,Inf} for one period t_0. Dynare then knows that these same FOCs have to hold in all subsequent periods as well (rational expectations modelling kicks in). If your problem does not fit into this structure, e.g. because of being a finite horizon problem you cannot use stoch_simul.
------------
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: No registered users and 4 guests