BFAVAR 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

angi
Posts: 1
Joined: Tue Apr 16, 2019 7:21 am

BFAVAR Add-In

Postby angi » Tue Apr 16, 2019 9:27 am

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

m@go
Posts: 3
Joined: Tue Apr 06, 2021 9:08 pm

Re: BFAVAR Add-In

Postby m@go » Tue Apr 06, 2021 9:20 pm

Hi, thank you for great add-in. But I found "error 14" and "error 15" when running bfavar_ex.prg. Could anyone help me?

dakila
Posts: 425
Joined: Tue Nov 24, 2015 4:57 pm

Re: BFAVAR Add-In

Postby dakila » Wed Apr 07, 2021 9:06 pm

What is the version you use?

m@go
Posts: 3
Joined: Tue Apr 06, 2021 9:08 pm

Re: BFAVAR Add-In

Postby m@go » Thu Apr 08, 2021 5:36 pm

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.)

dakila
Posts: 425
Joined: Tue Nov 24, 2015 4:57 pm

Re: BFAVAR Add-In

Postby dakila » Sun Apr 11, 2021 7:02 am

I will try to update it. It will run for the version 9 or 10.

m@go
Posts: 3
Joined: Tue Apr 06, 2021 9:08 pm

Re: BFAVAR Add-In

Postby m@go » Sun Apr 11, 2021 3:22 pm

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.

dakila
Posts: 425
Joined: Tue Nov 24, 2015 4:57 pm

Re: BFAVAR Add-In

Postby dakila » Tue Apr 13, 2021 5:45 pm

It is updated. The moderator will upload it soon.

Pica15
Posts: 1
Joined: Mon Aug 16, 2021 3:26 pm

Re: BFAVAR Add-In

Postby Pica15 » Tue Aug 17, 2021 2:13 am

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.

dakila
Posts: 425
Joined: Tue Nov 24, 2015 4:57 pm

Re: BFAVAR Add-In

Postby dakila » Tue Aug 17, 2021 9:23 pm

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


Clottey
Posts: 3
Joined: Thu Sep 09, 2021 9:51 pm

Re: BFAVAR Add-In

Postby Clottey » Fri Sep 10, 2021 12:28 pm

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

dakila
Posts: 425
Joined: Tue Nov 24, 2015 4:57 pm

Re: BFAVAR Add-In

Postby dakila » Sun Sep 12, 2021 3:34 am

Did you update Eviews you use? Could you provide the workfile?

Clottey
Posts: 3
Joined: Thu Sep 09, 2021 9:51 pm

Re: BFAVAR Add-In

Postby Clottey » Sat Sep 18, 2021 1:01 am

dakila wrote:Did you update Eviews you use? Could you provide the workfile?


Thanks


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 4 guests