MS-SBVAR: reinitialize options before calls to mssbvar functions
parent
3af111abe7
commit
7a23e4e332
|
@ -942,6 +942,7 @@ MSSBVAREstimationStatement::checkPass(ModFileStructure &mod_file_struct)
|
||||||
void
|
void
|
||||||
MSSBVAREstimationStatement::writeOutput(ostream &output, const string &basename) const
|
MSSBVAREstimationStatement::writeOutput(ostream &output, const string &basename) const
|
||||||
{
|
{
|
||||||
|
output << "options_ = initialize_ms_sbvar_options(M_, options_);" << endl;
|
||||||
options_list.writeOutput(output);
|
options_list.writeOutput(output);
|
||||||
output << "[options_, oo_] = ms_estimation(M_, options_, oo_);" << endl;
|
output << "[options_, oo_] = ms_estimation(M_, options_, oo_);" << endl;
|
||||||
}
|
}
|
||||||
|
@ -960,6 +961,7 @@ MSSBVARSimulationStatement::checkPass(ModFileStructure &mod_file_struct)
|
||||||
void
|
void
|
||||||
MSSBVARSimulationStatement::writeOutput(ostream &output, const string &basename) const
|
MSSBVARSimulationStatement::writeOutput(ostream &output, const string &basename) const
|
||||||
{
|
{
|
||||||
|
output << "options_ = initialize_ms_sbvar_options(M_, options_);" << endl;
|
||||||
options_list.writeOutput(output);
|
options_list.writeOutput(output);
|
||||||
output << "[options_, oo_] = ms_simulation(M_, options_, oo_);" << endl;
|
output << "[options_, oo_] = ms_simulation(M_, options_, oo_);" << endl;
|
||||||
}
|
}
|
||||||
|
@ -978,6 +980,7 @@ MSSBVARComputeMDDStatement::checkPass(ModFileStructure &mod_file_struct)
|
||||||
void
|
void
|
||||||
MSSBVARComputeMDDStatement::writeOutput(ostream &output, const string &basename) const
|
MSSBVARComputeMDDStatement::writeOutput(ostream &output, const string &basename) const
|
||||||
{
|
{
|
||||||
|
output << "options_ = initialize_ms_sbvar_options(M_, options_);" << endl;
|
||||||
options_list.writeOutput(output);
|
options_list.writeOutput(output);
|
||||||
output << "[options_, oo_] = ms_compute_mdd(M_, options_, oo_);" << endl;
|
output << "[options_, oo_] = ms_compute_mdd(M_, options_, oo_);" << endl;
|
||||||
}
|
}
|
||||||
|
@ -996,6 +999,7 @@ MSSBVARComputeProbabilitiesStatement::checkPass(ModFileStructure &mod_file_struc
|
||||||
void
|
void
|
||||||
MSSBVARComputeProbabilitiesStatement::writeOutput(ostream &output, const string &basename) const
|
MSSBVARComputeProbabilitiesStatement::writeOutput(ostream &output, const string &basename) const
|
||||||
{
|
{
|
||||||
|
output << "options_ = initialize_ms_sbvar_options(M_, options_);" << endl;
|
||||||
options_list.writeOutput(output);
|
options_list.writeOutput(output);
|
||||||
output << "[options_, oo_] = ms_compute_probabilities(M_, options_, oo_);" << endl;
|
output << "[options_, oo_] = ms_compute_probabilities(M_, options_, oo_);" << endl;
|
||||||
}
|
}
|
||||||
|
@ -1016,6 +1020,7 @@ MSSBVARIrfStatement::checkPass(ModFileStructure &mod_file_struct)
|
||||||
void
|
void
|
||||||
MSSBVARIrfStatement::writeOutput(ostream &output, const string &basename) const
|
MSSBVARIrfStatement::writeOutput(ostream &output, const string &basename) const
|
||||||
{
|
{
|
||||||
|
output << "options_ = initialize_ms_sbvar_options(M_, options_);" << endl;
|
||||||
symbol_list.writeOutput("var_list_", output);
|
symbol_list.writeOutput("var_list_", output);
|
||||||
options_list.writeOutput(output);
|
options_list.writeOutput(output);
|
||||||
output << "[options_, oo_] = ms_irf(var_list_,M_, options_, oo_);" << endl;
|
output << "[options_, oo_] = ms_irf(var_list_,M_, options_, oo_);" << endl;
|
||||||
|
@ -1035,6 +1040,7 @@ MSSBVARForecastStatement::checkPass(ModFileStructure &mod_file_struct)
|
||||||
void
|
void
|
||||||
MSSBVARForecastStatement::writeOutput(ostream &output, const string &basename) const
|
MSSBVARForecastStatement::writeOutput(ostream &output, const string &basename) const
|
||||||
{
|
{
|
||||||
|
output << "options_ = initialize_ms_sbvar_options(M_, options_);" << endl;
|
||||||
options_list.writeOutput(output);
|
options_list.writeOutput(output);
|
||||||
output << "[options_, oo_] = ms_forecast(M_, options_, oo_);" << endl;
|
output << "[options_, oo_] = ms_forecast(M_, options_, oo_);" << endl;
|
||||||
}
|
}
|
||||||
|
@ -1053,6 +1059,7 @@ MSSBVARVarianceDecompositionStatement::checkPass(ModFileStructure &mod_file_stru
|
||||||
void
|
void
|
||||||
MSSBVARVarianceDecompositionStatement::writeOutput(ostream &output, const string &basename) const
|
MSSBVARVarianceDecompositionStatement::writeOutput(ostream &output, const string &basename) const
|
||||||
{
|
{
|
||||||
|
output << "options_ = initialize_ms_sbvar_options(M_, options_);" << endl;
|
||||||
options_list.writeOutput(output);
|
options_list.writeOutput(output);
|
||||||
output << "[options_, oo_] = ms_variance_decomposition(M_, options_, oo_);" << endl;
|
output << "[options_, oo_] = ms_variance_decomposition(M_, options_, oo_);" << endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue