MS-SBVAR
Posted:
Tue Jun 28, 2011 11:17 am
by tsadeq
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
Re: MS-SBVAR
Posted:
Tue Jun 28, 2011 7:10 pm
by StephaneLhuissier
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_swzHope that helps you,
Stéphane
Re: MS-SBVAR
Posted:
Thu Jun 30, 2011 9:58 am
by tsadeq
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) ;
Re: MS-SBVAR
Posted:
Mon Jul 11, 2011 9:31 am
by HoutanBastani
This is a bug and will be fixed. I'll post a reply when it's done.
Re: MS-SBVAR
Posted:
Tue Jul 12, 2011 12:51 pm
by HoutanBastani
Fixed. You can get the updated file in tonight's snapshot.
Best,
Houtan