automating input to conditional forecast command

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.

automating input to conditional forecast command

Postby clauper » Wed May 10, 2017 5:36 am

Dear all,

I would like to automate conditional forecasts, such that I don't have to manually insert the vector of values into my .mod file.

The only way I can think of is to invoke the underlying matlab function icforecast(..) after I have run the estimation in dynare. Are there any caveats/problems with this approach?

Thanks in advance!
clauper
 
Posts: 6
Joined: Tue Jan 17, 2017 12:01 am

Re: automating input to conditional forecast command

Postby jpfeifer » Wed May 10, 2017 1:55 pm

That should work. A potential problem may be the global variables used by
Code: Select all
imcforecast
. You need to make sure they exist and are correctly set. The previous estimation-command you suggest should do that. What exactly do you mean with
automate
?
------------
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: automating input to conditional forecast command

Postby clauper » Wed May 10, 2017 3:48 pm

By automate I mean to have a routine that lets me do conditional forecasting for different (vectorized) variable paths without manually copying them to the "values"-line in the conditional_forecast block of the .mod file. Thanks for your help!
clauper
 
Posts: 6
Joined: Tue Jan 17, 2017 12:01 am

Re: automating input to conditional forecast command

Postby jpfeifer » Fri May 12, 2017 6:28 am

Yes, in that case you need to set the input argument
Code: Select all
constrained_paths

of the
Code: Select all
imcforecast

function.
------------
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 8 guests