MS-SBVAR

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.

MS-SBVAR

Postby tsadeq » Tue Jun 28, 2011 11:17 am

Hi,
I am working with the unstable version of Dynare of 06/06/2011. I'm trying to estimate a Markov-switching BVAR using the command ms_sbvar. However, I've an error message:

"The expression to the left of the equals sign is not a valid target for an assignment." The expression corresponds to the option "datafile".

datafile is defined as an option in ms_sbvar.m
I don't understand where is the problem!!!

Regards,

Tareq
tsadeq
 
Posts: 2
Joined: Tue Jun 28, 2011 11:07 am

Re: MS-SBVAR

Postby StephaneLhuissier » Tue Jun 28, 2011 7:10 pm

Hi Tareq,

The command "ms_sbvar" no longer exists. The commands for running a MS-SBVAR model have changed.
You can find an example on the DynareWiki : http://www.dynare.org/DynareWiki/example_swz

Hope that helps you,

Stéphane
Stéphane Lhuissier
CEPII
http://www.stephanelhuissier.eu
StephaneLhuissier
 
Posts: 20
Joined: Fri Oct 30, 2009 1:47 pm

Re: MS-SBVAR

Postby tsadeq » Thu Jun 30, 2011 9:58 am

Many thanks,
It seems to work well. However, I have the following error when I use the command ms_forecast. Otherwise, all works well.


Forecasts
Constructing percentiles for forecasts - 10000 draws of shocks/regimes per posterior value
??? Undefined variable "M_" or class "M_.fname".

Error in ==> plot_ms_forecast>plot_banded_forecast at 130
dyn_save_graph(M_.fname,['MS-forecast-' int2str(n_fig)],...

Error in ==> plot_ms_forecast at 79
plot_banded_forecast(forecast,nvars,nr,nc,var_list,num_percentiles,...

Error in ==> ms_forecast at 49
plot_ms_forecast(M_,forecast,'Forecast',options_.graph_save_formats,options_.TeX);

Error in ==> ms_var_cz at 110
[options_, oo_] = ms_forecast(M_, options_, oo_);

Error in ==> dynare at 132
evalin('base',fname) ;
tsadeq
 
Posts: 2
Joined: Tue Jun 28, 2011 11:07 am

Re: MS-SBVAR

Postby HoutanBastani » Mon Jul 11, 2011 9:31 am

This is a bug and will be fixed. I'll post a reply when it's done.
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: MS-SBVAR

Postby HoutanBastani » Tue Jul 12, 2011 12:51 pm

Fixed. You can get the updated file in tonight's snapshot.

Best,
Houtan
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests