Large Bayesian VAR

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

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

Large Bayesian VAR

Postby dakila » Mon Nov 28, 2016 3:19 pm

This thread is about the lbvar add-in that estimates Large Bayesian VARs.

awatt43
Posts: 20
Joined: Mon Aug 21, 2017 12:19 am

Re: Large Bayesian VAR

Postby awatt43 » Wed Aug 30, 2017 3:24 am

Hi there,
I keep getting the following error "Matrix-Vector index is out of range" what does this refer to?
Thanks,
Abi

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

Re: Large Bayesian VAR

Postby dakila » Wed Aug 30, 2017 6:42 pm

if your data have missing values then adjust the sample size.

adrangi
Posts: 31
Joined: Sat Dec 05, 2009 5:56 pm

Bayesian VAR

Postby adrangi » Mon Sep 04, 2017 6:53 pm

Hi. I installed the Add-in BVAR. I tried to run it for 4 variables, 6 lags. Nothing happened. Any ideas? Thanks. BA

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

Re: Large Bayesian VAR

Postby dakila » Mon Sep 04, 2017 7:44 pm

This thread is about the LBVAR add-in not BVAR.

adrangi
Posts: 31
Joined: Sat Dec 05, 2009 5:56 pm

Re: Large Bayesian VAR

Postby adrangi » Tue Sep 05, 2017 10:57 am

Hi . Sorry, my search landed me here so I thought covers both. I've installed LBVAR. Will try both. Thanks. BA

erhardmenker
Posts: 1
Joined: Mon Jun 19, 2017 3:47 pm

Re: Large Bayesian VAR

Postby erhardmenker » Tue Sep 19, 2017 2:58 pm

Thanks for creating such a useful add-in for my research needs. Do you have an unencrypted version of the LBVAR program that can be viewed? I am trying to view the inner-workings of the code (e.g. open intermediate objects, view portions of the algorithm) for the purpose of understanding the add-in.

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

Re: Large Bayesian VAR

Postby dakila » Thu Sep 21, 2017 5:22 pm

can you check your private message?

vikas.trades25
Posts: 7
Joined: Fri Jul 03, 2015 7:32 am

Re: Large Bayesian VAR

Postby vikas.trades25 » Thu Oct 12, 2017 9:32 am

I am using a 10 variable, with 5 lags model with quarterly data from 1980 onwards, All my variables enter in log-differences, so random walk prior is
0. Do I need to enter an array of 10 0's for all the 10 variables in the "Random walk prior box". Lambda is 0.15 and Tau is 1.5. Estimation is forecasting.
Forecast horizon is 1 quarter. I do not have any endogenous variables. What do i need to give in "Fit evaluation variables" box.

I also want to see the fitted values. How do I see that.

Thanks

vikas.trades25
Posts: 7
Joined: Fri Jul 03, 2015 7:32 am

Re: Large Bayesian VAR

Postby vikas.trades25 » Thu Oct 12, 2017 1:38 pm

I get the following error "Size do not match in matrix function". 9 variables are in log differences while one is in levels.

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

Re: Large Bayesian VAR

Postby dakila » Thu Oct 12, 2017 3:48 pm

You need to create the vector for Random walk prior box. For example:

Code: Select all

vector irw=@zeros(10)

If fifth variable is non-stationary then

Code: Select all

irw(5)=1

You manually entered lambda and tau. So you don't need to fit evaluation variables. If you choose grid search then you need the fit evaluation variables.
Fit evaluation variables is usually GDP, Price(CPI or GDP deflator) and Interest rate (Fed Fund rate). You can choose whatever variables you want. But don't choose too many variables. Approximately 3 variables are ok.
You want to see the forecasted values? it is the variable with suffix _f.
Please read the instruction document which is located in the C:\Users\...\Documents\EViews Addins\LBVAR folder (lbvar.pdf).

vikas.trades25
Posts: 7
Joined: Fri Jul 03, 2015 7:32 am

Re: Large Bayesian VAR

Postby vikas.trades25 » Fri Oct 13, 2017 7:34 am

All my variables are stationary. I have created the "irw" vector. Now do I need to give all the variable names in the endogenous variables, since all the variables are included in the model. It gives me the same error "sizes do not match in matrix function".
When I also include irw in the endogenous variable list, it gives me the error "irw is not a series".

How to solve this. All the 10 variables are to be included in the model.
Also how to see the fitted series. Is there a way to get this.

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

Re: Large Bayesian VAR

Postby dakila » Fri Oct 13, 2017 3:13 pm

You should put the irw vector into the Random walk prior box.

vikas.trades25
Posts: 7
Joined: Fri Jul 03, 2015 7:32 am

Re: Large Bayesian VAR

Postby vikas.trades25 » Mon Oct 16, 2017 8:10 am

Thanks for the previous reply.
I get the following error now: "EXTSER is not the same length as sample"
I need to get the forecasts for all 13 vars. Do I need to give anything in the impulse variable box.

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

Re: Large Bayesian VAR

Postby dakila » Tue Oct 17, 2017 6:30 am

If you have the missing observations because of the first order difference, then you should adjust the sample size.


Return to “Add-in Support”

Who is online

Users browsing this forum: Baidu [Spider] and 9 guests