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!!!
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,
It seems to work well. However, I have the following error when I use the command ms_forecast. Otherwise, all works well.
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
Error in ==> plot_ms_forecast at 79
Error in ==> ms_forecast at 49
Error in ==> ms_var_cz at 110
[options_, oo_] = ms_forecast(M_, options_, oo_);
Error in ==> dynare at 132
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.