Page 1 of 1

MCPROCESSIRF (Calculation of bands for IRF's)

PostPosted: Mon Aug 20, 2012 1:02 pm
by TomDoan
This is a revised version of the @MCPROCESSIRF procedure, which takes a set of simulated impulse response functions (done with, for instance, @MCVARDODRAWS) and generates upper, lower and center series as they are for @MCGRAPHIRF (see http://www.estima.com/forum/viewtopic.php?f=7&t=995) without doing the graphs. That way you can report the information as you wish. The input simulated responses have to be in the %%RESPONSES array as described in the comments to the procedure.

mcprocessirf.src
Procedure file
(6.48 KiB) Downloaded 88 times


@MCPROCESSIRF(MODEL=model used in generating responses,other options)

CENTER=[MEAN]/MEDIAN/INPUT
IMPULSES=RECT[SERIES] with input "center" for IRF's

These determine what is to be used as the point estimate of the IRF. The default is MEAN, which will be the mean across simulations. MEDIAN requests the median. If CENTER=INPUT, you must input the desired point estimates using the IMPULSES option---typically the impulse responses at the original estimates for the VAR.

PERCENTILES=||percentiles for lower and upper bounds|| [||.16,.84||]
STDDEV=# of standard deviations from mean for lower and upper bounds [not used]
STDDEV is used for doing error bands based upon multiples of the sample standard deviations. For instance, STDDEV=1.0 will give upper and lower bounds that are one standard deviation above and below the central response. PERCENTILES is the default.

WEIGHTS=series of (relative) weights on the draws (from importance sampling) [equal weights]
Note that this can dramatically slow down the calculation if you ask for percentiles and have many (5000+) draws.

These are the outputs. IRF is required, the other three are options. Each generates a RECT[SERIES], where x(i,j) is the series of responses of variable i to shock j.

IRF=RECT[SERIES] with the central measure of the impulse responses
VAR=RECT[SERIES] with the variances of the IRF's
LOWER=RECT[SERIES] with the lower bounds
UPPER=RECT[SERIES] with the upper bounds

Re: MCPROCESSIRF (Calculation of bands for IRF's)

PostPosted: Sun Apr 07, 2013 2:26 pm
by nikosant82
Dear Tom,

Is it possible to provide an example using the MCPROCESSIRF code?

Thanks a lot in advance.
Cheers,
Nik

Re: MCPROCESSIRF (Calculation of bands for IRF's)

PostPosted: Mon Apr 08, 2013 8:54 pm
by TomDoan
nikosant82 wrote:Dear Tom,

Is it possible to provide an example using the MCPROCESSIRF code?

Thanks a lot in advance.
Cheers,
Nik


Bjornland Leitemo JME 2009 (http://www.estima.com/forum/viewtopic.php?f=8&t=1118)
Ehrmann Ellison Valla EL 2003 (http://www.estima.com/forum/viewtopic.php?f=8&t=1192)

Re: MCPROCESSIRF (Calculation of bands for IRF's)

PostPosted: Thu Apr 11, 2013 6:30 am
by nikosant82
TomDoan wrote:
nikosant82 wrote:Dear Tom,

Is it possible to provide an example using the MCPROCESSIRF code?

Thanks a lot in advance.
Cheers,
Nik


Bjornland Leitemo JME 2009 (http://www.estima.com/forum/viewtopic.php?f=8&t=1118)
Ehrmann Ellison Valla EL 2003 (http://www.estima.com/forum/viewtopic.php?f=8&t=1192)


Many thanks!