### Large Bayesian VAR

Posted:

**Mon Nov 28, 2016 3:19 pm**This thread is about the lbvar add-in that estimates Large Bayesian VARs.

Page **1** of **1**

Posted: **Mon Nov 28, 2016 3:19 pm**

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

Posted: **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

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

Thanks,

Abi

Posted: **Wed Aug 30, 2017 6:42 pm**

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

Posted: **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

Posted: **Mon Sep 04, 2017 7:44 pm**

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

Posted: **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

Posted: **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.

Posted: **Thu Sep 21, 2017 5:22 pm**

can you check your private message?

Posted: **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

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

Posted: **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.

Posted: **Thu Oct 12, 2017 3:48 pm**

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

If fifth variable is non-stationary then

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

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

Posted: **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.

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.

Posted: **Fri Oct 13, 2017 3:13 pm**

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

Posted: **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.

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.

Posted: **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.