Confidence bands of accumulated IRF
Posted: Mon Aug 04, 2014 7:55 am
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:
(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
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 jI hope you got my point.
Thank you in advance,
Best,
Romain