changing parameter values in IRFs

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 parameter values in IRFs

Postby alenot » Thu Jul 13, 2006 9:39 am

Hi,

I'd like dynare to compute and show impulse response functions for given variables and shocks, when one of the structural parameters assumes different possible values. E.g.: the response of output to a tech shock when the depreciation rate is equal to 0.2, 0.25, 0.3, 0.35. Is it possible to plot the 4 IRFs in a single graph?
alenot
 
Posts: 5
Joined: Thu Jul 13, 2006 9:32 am

Postby MichelJuillard » Fri Jul 14, 2006 4:06 pm

you need to mix Matlab commands and Dynare commands in the *.mod file

I will post an example in about 10 days. (I'm on the road right now)

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby alenot » Mon Jul 17, 2006 8:23 am

Thanks a lot

Alessandro
alenot
 
Posts: 5
Joined: Thu Jul 13, 2006 9:32 am

Postby MichelJuillard » Thu Aug 10, 2006 2:35 pm

Attached is finally an example for doing IRF in a loop with different parameter values.

Sorry for the delay

Michel
Attachments
irf_loop.mod
(1.67 KiB) Downloaded 612 times
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby alenot » Mon Aug 28, 2006 12:29 pm

Dear Michel,

thank you for the reply. I tried to run the example file, but it looks like the command 'graph' cannot be used in the 3.064 version. Everything else works perfectly.
Thank you

Alessandro
alenot
 
Posts: 5
Joined: Thu Jul 13, 2006 9:32 am

Postby MichelJuillard » Mon Aug 28, 2006 6:57 pm

Dear Alessandro,

I tested it with the snapshot for version 3.

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby aemkei1982 » Wed Feb 13, 2008 10:30 am

Dear Michel,

I was trying to use the loop-section of the example file you provided for plotting IRFs of different parameter values into one graph.

In my example I just replaced the parameter psi from your example and left everything else as it was.

Which parts do I have to alter if I have more endogenous variables than your example and want to have some of them plotted in 3by3 subplot graphs? Or would it be easier to construct the graphs by myself?

Best regards,
Min-Kyu
aemkei1982
 
Posts: 13
Joined: Tue Dec 11, 2007 5:04 pm


Return to Dynare help

Who is online

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