BVAR

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

BVAR

Postby m.asgari » Tue Mar 11, 2014 8:07 am

Dear all,

I'm used Bayesian estimation. I'm trying to solved a example. However, show the following error:


Index exceeds matrix dimensions.
Error in bvar_toolbox (line 109)
ydata = dataset(idx, ;
Error in bvar_density (line 33)
[ny, nx, posterior, prior] = bvar_toolbox(nlags);
Error in fTheSouthAfricanDSGEModel (line 732)
bvar_density(6);
Error in dynare (line 180)
evalin('base',fname) ;


will you so kind to give me some advises. thank you in advance.
maz
Attachments
bcogo.mod
(960 Bytes) Downloaded 155 times
m.asgari
 
Posts: 2
Joined: Mon Feb 10, 2014 8:34 am

Re: BVAR

Postby m.asgari » Tue Mar 11, 2014 8:17 am

Dear all,

I'm used Bayesian estimation. I'm trying to solved a example. However, show the following error:


Index exceeds matrix dimensions.
Error in bvar_toolbox (line 109)
ydata = dataset(idx, ;
Error in bvar_density (line 33)
[ny, nx, posterior, prior] = bvar_toolbox(nlags);
Error in fTheSouthAfricanDSGEModel (line 732)
bvar_density(6);
Error in dynare (line 180)
evalin('base',fname) ;


will you so kind to give me some advises. thank you in advance.
maz
Attachments
New Folder (4).zip
(2.12 KiB) Downloaded 145 times
m.asgari
 
Posts: 2
Joined: Mon Feb 10, 2014 8:34 am

Re: BVAR

Postby jpfeifer » Tue Mar 11, 2014 10:53 am

You need to add
Code: Select all
nobs=22

to the bvar_density options (there are 22 observations left in your data set when you start at first_obs=20). The same applies to bvar_forecast.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare contributions and examples

Who is online

Users browsing this forum: No registered users and 5 guests