From 91b7888e61a0805d209386f61fc21ecdbc3257c2 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Wed, 22 Aug 2018 14:29:07 +0200 Subject: [PATCH] print nonstationary field for trend_component and var models --- src/SubModel.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/SubModel.cc b/src/SubModel.cc index 679a12c3..e4786116 100644 --- a/src/SubModel.cc +++ b/src/SubModel.cc @@ -256,8 +256,11 @@ TrendComponentModelTable::writeOutput(ostream &output) const << "M_.trend_component." << name << ".orig_diff_var = ["; for (auto it : orig_diff_var.at(name)) output << (it >= 0 ? symbol_table.getTypeSpecificID(it) + 1 : -1) << " "; + output << "];" << endl + << "M_.trend_component." << name << ".nonstationary = ["; + for (auto it : nonstationary.at(name)) + output << (it ? "true" : "false") << " "; output << "];" << endl; - int i = 1; for (const auto &it : rhs.at(name)) { @@ -363,8 +366,11 @@ VarModelTable::writeOutput(ostream &output) const << "M_.var." << name << ".orig_diff_var = ["; for (auto it : orig_diff_var.at(name)) output << (it >= 0 ? symbol_table.getTypeSpecificID(it) + 1 : -1) << " "; + output << "];" << endl + << "M_.var." << name << ".nonstationary = ["; + for (auto it : nonstationary.at(name)) + output << (it ? "true" : "false") << " "; output << "];" << endl; - int i = 1; for (const auto &it : rhs.at(name)) {