Changing parameters in transition experiments

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.

Changing parameters in transition experiments

Postby Hungermann » Thu Oct 08, 2015 3:17 pm

In 'Practicing Dynare' chapter 4 'Fiscal policies in the growth model', there are some transition experiments with permanent change of certain parameters at some period, say 'g', government spending rate as in the first example. Here 'g' is fixed and only changes once and for all to another fixed value.

Would it be possible that we can have time varying value of 'g' over its whole path, with 'g(t)' instead of 'g'? And how can we realize this in Dynare?

I found this kind of experiment in Andrea Ferrero's working paper ' Demographics and Real Interest Rates - Inspecting the Mechanism', where they use time varying birth rate and mortality rate. The only thing they mention is the usual shooting algorithm in Dynare is used. As shooting algorithm is just a routine procedure for transition experiment with constant parameter and only one time change, it is puzzling for me to think through.
Hungermann
 
Posts: 3
Joined: Thu Oct 08, 2015 3:02 pm

Re: Changing parameters in transition experiments

Postby jpfeifer » Sat Oct 10, 2015 8:12 am

The g is defined as varexo. That means its evolution over time is perfectly known, but it can change at any point in time. Have a look at the manual on the shocks -block on how to specify a path for exogenous variables
------------
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

Re: Changing parameters in transition experiments

Postby Hungermann » Fri Oct 30, 2015 9:56 am

jpfeifer wrote:The g is defined as varexo. That means its evolution over time is perfectly known, but it can change at any point in time. Have a look at the manual on the shocks -block on how to specify a path for exogenous variables



Dear Prof. Pfeifer:

It seems like the only command for this purpose to specify a path for exogenous variables in ''Dynare Manual'' is '' initval_file ''. So I tried this command to replicate the Figure 11.3.1 in chapter 11 of Ljungqvist and Sargent (2004) ( and section 4.3.1 in Practicing Dynare (2007)), the situation of a permanent increase of 0.2 in g. The figure generated is in the following:

Image

The graphs of the first 50 periods are exactly the same as Figure 11.3.1 in chapter 11 of Ljungqvist and Sargent (2004), but the later periods have some funny shape.

If I change the discontinuously sudden increase of g to a smooth changing path: g = 0.2*exp(.99639478.^(n-1)-.95.^(n-1)) where n is from 1 to 100, we still have g(1)=0.2, g(100)=0.4, the figure generated is:

Image

which looks like a smoothed version of the former figure.

Up to this point, I'm not sure whether it is because '' initval_file '' is only suitable for temporary change rather than permanent change of exogenous variables, or just because I use this command in a incorrect way?

Come back to the old question, how can I correctly implement this smooth transition in Dynare? suppose g = 0.2*exp(.99639478.^(n-1)-.95.^(n-1)) as before.
Attachments
Fig1131_Jonas_initval_file_data1.m
(347 Bytes) Downloaded 138 times
Fig1131_Jonas_initval_file_data.m
(318 Bytes) Downloaded 132 times
Fig1131_Jonas_initval_file.mod
(1.46 KiB) Downloaded 152 times
Hungermann
 
Posts: 3
Joined: Thu Oct 08, 2015 3:02 pm

Re: Changing parameters in transition experiments

Postby jpfeifer » Sat Oct 31, 2015 5:21 pm

------------
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

Re: Changing parameters in transition experiments

Postby Hungermann » Thu Nov 05, 2015 3:57 pm

It is more likely to be that the problem is not explained clearly at the beginning, but now I figure it out. Exactly as Johannes said at the beginning, it can be done by just using '' shocks '' as in Stéphane's old code https://gist.github.com/stepan-a/6974512, or using ''initval'' and ''endval'', or using ''initval_file''. The key is just the transition graph's period taken should be less than specified path's period in Dynare, as using '' shocks '' means the transition parameter goes back to 0 after the specified path, '' initval_file '' means it goes back to initial value , ''initval'' and ''endval'' means it stays at the last value of the path, thus, the latter part of the graph will always have some funny shape.
Hungermann
 
Posts: 3
Joined: Thu Oct 08, 2015 3:02 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests