Page 1 of 1

news shock loop

PostPosted: Thu Jul 02, 2015 1:00 am
by Ippei
Hi,

I would like to compare impulse responses by different horizon of news shocks.
If u is a shock, one period ahead news shock can be implemented by u(-1). Instead, I would like to have u(-T), where T can be treated like a parameter.

Is it possible to make a mod file where I can have a loop for T using macro processor?

Thanks in advance,
Ippei

Re: news shock loop

PostPosted: Mon Jul 06, 2015 5:20 am
by jpfeifer
Dear Ippei,
as you are looping over different models, you need to do the loop in Matlab. You could use the approach outlined here: http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=5429

Re: news shock loop

PostPosted: Wed Jul 15, 2015 4:47 am
by Ippei
Dear Johannes,

Many thanks. This is what I wanted to know and what is difficult to learn by myself.

Cheers,
Ippei