Bug in BVAR Add-in?

For questions about EViews Add-ins available from the EViews Add-ins webpage. Note each add-in available on our webpage will have its own individual thread.

Moderators: EViews Gareth, EViews Moderator, EViews Esther

donihue
Posts: 135
Joined: Wed Oct 07, 2009 8:51 am

Bug in BVAR Add-in?

Postby donihue » Sat Nov 20, 2010 11:29 am

Further to my previous post in this Bug Report forum, when using the Diffuse (Flat-Flat) prior, the parameter estimates are (as they should be) identical to those produced by the standard VAR command (although the standard errors differ).

IRFs of course depend upon the definition of the shock. Below is an example using the non-factorised 1 sd definition under VAR. Here, the first column is the same for response of pi to pi, but everything else is different.. (Note also that the name of the response variable is incorrectly shown by the BVAR Add-in.)

A second example uses the df-corrected Cholesky definition under VAR. Although the IRFs are identical for the first period, they are different for subsequent periods

These odd results may well be caused by definitional differences rather than a bug, so it would be helpful to know how the BVAR Add-In IRFs are calculated.

Regards
Donihue
Attachments
BVAR_test3.jpg
Using non-factorised 1 sd
BVAR_test3.jpg (123.7 KiB) Viewed 5251 times
BVAR_test2.jpg
Using Cholesky
BVAR_test2.jpg (124.36 KiB) Viewed 5250 times

EViews Esther
EViews Developer
Posts: 149
Joined: Fri Sep 03, 2010 7:57 am

Re: Bug in BVAR Add-in?

Postby EViews Esther » Mon Nov 22, 2010 11:48 am

Further to my previous post in this Bug Report forum, when using the Diffuse (Flat-Flat) prior, the parameter estimates are (as they should be) identical to those produced by the standard VAR command (although the standard errors differ).

Yes. Since the Diffuse (flat-flat) prior is a non-informative prior (which has no distributional information), the parameter estimates should be identical to those in the standard VAR.

IRFs of course depend upon the definition of the shock. Below is an example using the non-factorised 1 sd definition under VAR. Here, the first column is the same for response of pi to pi, but everything else is different.. (Note also that the name of the response variable is incorrectly shown by the BVAR Add-in.) A second example uses the df-corrected Cholesky definition under VAR. Although the IRFs are identical for the first period, they are different for subsequent periods. These odd results may well be caused by definitional differences rather than a bug, so it would be helpful to know how the BVAR Add-In IRFs are calculated.

As mentioned, IRFs depend on the *shock* matrix, which is a square matrix of initial *shock* vector. One way to get such a matrix is to set shock = @cholesky(sigma) where error_t ~ N(0, sigma).
The odd results *could* be a bug because of the odd Cholesky ordering.

In the updated BVAR add-in, the Cholesky ordering is fixed. To get the shock matrix corresponding to *different* ordering, you can use shock = @cholesky(P*sigma*@transpose(P))*P where P is a permutation matrix.

Thank you for your attention! It was a big help.

Best,
Esther

donihue
Posts: 135
Joined: Wed Oct 07, 2009 8:51 am

Re: Bug in BVAR Add-in?

Postby donihue » Tue Nov 23, 2010 5:07 am

Many thanks, Esther. It is marvellous to be able to dialogue with programme developers. What a (positive) change from the old "black box" days of EViews!

Regards
Donihue


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 11 guests