Ms-sbvar

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

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 : dynare.org/DynareWiki/example_swz

Hope that helps you,

Stéphane

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

This is a bug and will be fixed. I’ll post a reply when it’s done.

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

Best,
Houtan