Confidence bands of accumulated IRF

Questions and discussions on Vector Autoregressions
RomainR
Posts: 18
Joined: Fri Jul 19, 2013 7:19 am

Confidence bands of accumulated IRF

Unread post by RomainR »

Dear all
I estimate a Panel VAR model, the panel consists in 20 countries and 42 observations for each country, the dataset is perfectly balanced. Additionally, I have three variables (X1, X2 and X3), two lags and two deterministic variables (a country fixed effect and a country-specific linear trend) in the VAR.
I then calculate the impulse and the total cumulated impulse functions. Could you please help me telling me how I can compute the accumulated IRF plus their confidence bands?
For the accumulated IRF, I guess this code is sufficient:

Code: Select all

do j = 1,nbvar
accumulate irfm(j) / cirfm(j)
end do j
(where irfm the IRF and nbvar the number of variables, say 3 here). But how can I recover the confidence bands for the accumulated IRF ?
I hope you got my point.

Thank you in advance,

Best,
Romain
Attachments
PVAR_model.RPF
(4.99 KiB) Downloaded 931 times
database1.xls
(95.5 KiB) Downloaded 625 times
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Confidence bands of accumulated IRF

Unread post by TomDoan »

After:

impulse(noprint,model=pvarmodel1,decomp=swish,results=impulses) nbvar nstep

and before the ewise responses(...), if you want all the responses accumulated, you can do

do i=1,nvar
do j=1,nvar
acc impulses(i,j)
end do j
end do i

The responses that are then saved and graphed will then be the accumulated ones.
RomainR
Posts: 18
Joined: Fri Jul 19, 2013 7:19 am

Re: Confidence bands of accumulated IRF

Unread post by RomainR »

OK, many thanks, Tom.
Post Reply