Page 1 of 1

BFAVAR Add-In

Posted: Tue Apr 16, 2019 9:27 am
by angi
Dear everyone,

at first, thanks for this great Add-in. At this moment I am trying to estimate a BFAVAR with two factors (extracted from a number of series X1 to X4) and with two Y series Y1 and Y2. The order of my BFAVAR is supposed to be the following: F1 F2 Y1 Y2. And I want to measure the response of Y2 to a shock of Y1.

My code: bfavar(factor=2, horizon=20, rep=1000, burn=200, ci=0.9) 3 x yx_nr tcode yx_name @ Y2 Y1
(x:matrix of X1 X2 X3 X4, yx_name: the names of Y1 Y2 X1 X2 X3 X4 and yx_nr: 5 6 1 2 3 4)

Is it possible to have more than one Y series? And is the code right if I want to measure the responses to a shock in Y1?
Are yx_name and yx_nr built the right way for this purpose?
(I use Eviews 9.5).

Thanks in advance!
Angelina

Re: BFAVAR Add-In

Posted: Tue Apr 06, 2021 9:20 pm
by m@go
Hi, thank you for great add-in. But I found "error 14" and "error 15" when running bfavar_ex.prg. Could anyone help me?

Re: BFAVAR Add-In

Posted: Wed Apr 07, 2021 9:06 pm
by dakila
What is the version you use?

Re: BFAVAR Add-In

Posted: Thu Apr 08, 2021 5:36 pm
by m@go
dakila wrote:What is the version you use?

Thank you for your reply. I use version 11.
(FYI: I also installed favar add-in and run favar_ex.prg successfully.)

Re: BFAVAR Add-In

Posted: Sun Apr 11, 2021 7:02 am
by dakila
I will try to update it. It will run for the version 9 or 10.

Re: BFAVAR Add-In

Posted: Sun Apr 11, 2021 3:22 pm
by m@go
dakila wrote:I will try to update it. It will run for the version 9 or 10.

Thanks! I am looking forward to the update.

Re: BFAVAR Add-In

Posted: Tue Apr 13, 2021 5:45 pm
by dakila
It is updated. The moderator will upload it soon.

Re: BFAVAR Add-In

Posted: Tue Aug 17, 2021 2:13 am
by Pica15
Could someone please provide a tutorial regarding the transformation code and X and y variables ?

Tried to find BFAVAR in user manual but it is not there.

Awaiting your response.

Re: BFAVAR Add-In

Posted: Tue Aug 17, 2021 9:23 pm
by dakila

Code: Select all

' open the BBE data that is transformed to induce stationarity
wfopen(type=txt) nsbalpanel.txt delim=space
pagestruct(freq=m,start=1959)

'rename some variables   

for !i=1 to 9
   rename series0{!i} series{!i}
next

'do not standardize data. The package will standardize for you.

'Y variables 
genr ffr=series77

'All variables (X) except Y variable (FFR)

group xdata
for !i=1 to 120
   xdata.add series{!i}
next
xdata.drop series77

' Selection of key variables for impulse response analysis
'be carefull when you choose index number
' Y=ffr ordered last in the state space form, so its index 120
' remember -- with Y dropped from xdata, so -1 after 77. for exmaple, index(120)=120-1
vector xir =@fill(120, 16, 107, 77, 80, 95, 92, 74, 101, 17, 49, 50, 51, 26, 48, 117, 54, 62, 71, 119)

'Vector of transformation code of Y (ffr) variable + selection of key variables (xir)
'1 for no transformation
'4 for logarithm
'5 for first difference of logarithm

vector code =@fill(1, 5, 5, 1, 1, 5, 5, 5, 1, 1, 5, 5, 5, 1, 1, 5, 4, 1, 1, 1)

'Name of Y variables Y(ffr) + selected key variables (xir)
' Please first put a name of Y variable then selected variables
text yx_name
yx_name.append(file) yx_name.txt

' or append manually
' yx_name.append FFR
' yx_name.append IP
' yx_name.append CPI
'......
' yx_name.append Consumer Expectation 

bfavar(factor=3, horizon=48, rep=800, burn=200, ci=0.9) 13 xdata xir code yx_name @ ffr


Re: BFAVAR Add-In

Posted: Fri Sep 10, 2021 12:28 pm
by Clottey
Please am currently using Eview12 after successfully add-in for BFAVAR, when i go to Add-in to open BFAVAR a dialog box open with error 20 encrypted programmed. Please any help to unravel this error message.

Thanks

Re: BFAVAR Add-In

Posted: Sun Sep 12, 2021 3:34 am
by dakila
Did you update Eviews you use? Could you provide the workfile?

Re: BFAVAR Add-In

Posted: Sat Sep 18, 2021 1:01 am
by Clottey
dakila wrote:Did you update Eviews you use? Could you provide the workfile?


Thanks

Re: BFAVAR Add-In

Posted: Wed Aug 23, 2023 3:16 am
by rarya123
Dear EViews,
I have been facing a problem in running eviews addin for BFAVAR. When i am running the program file it is saying 13 (which is number of lag in the program) is called as "illegal or reserved in the prog file" (Screen shot is attached).
Kindly help me to resolve this issue.
Regards
Rakesh