Commit 7282b7bf authored by Houtan Bastani's avatar Houtan Bastani

fix bug in filling of var AR matrix

parent 6c7d7f5d
......@@ -3640,6 +3640,11 @@ DynamicModel::fillVarModelTable() const
var_model_table.setRhs(rhsr);
var_model_table.setLhsExprT(lhs_expr_tr);
var_model_table.setNonstationary(nonstationaryr);
// Fill AR Matrix
map<string, map<tuple<int, int, int>, expr_t>> ARr;
fillAutoregressiveMatrix(ARr, false);
var_model_table.setAR(ARr);
}
void
......@@ -3707,11 +3712,6 @@ DynamicModel::fillVarModelTableFromOrigModel(StaticModel &static_model) const
var_model_table.setDiff(diff);
var_model_table.setMaxLags(lags);
var_model_table.setOrigDiffVar(orig_diff_var);
// Fill AR Matrix
map<string, map<tuple<int, int, int>, expr_t>> ARr;
fillAutoregressiveMatrix(ARr, false);
var_model_table.setAR(ARr);
}
void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment