Page 1 of 1

BVAR program code

Posted: Mon Mar 12, 2012 12:53 pm
by ashtongate
Is there any way to make a model from a BVAR in a batch file? I see the subroutine makemodel is in the add-in directory, but I am finding it difficult to call it for a BVAR estimation. Thanks!

Re: BVAR program code

Posted: Mon Mar 12, 2012 1:08 pm
by EViews Gareth
I'll wait for Esther to confirm (she wrote it!), but a quick look at the code seems to indicate that there is an "m=name" option that lets you specify the name of a model object to make when running the add-in.

Re: BVAR program code

Posted: Mon Mar 12, 2012 1:20 pm
by EViews Esther
Gareth is right. Here is an example: bvar(m=model1) 2 y x1 x2 x3 (please note that the first argument is the number of lags).

Re: BVAR program code

Posted: Tue Mar 13, 2012 5:35 am
by ashtongate
Great, thanks a lot. Excellent add-in.