diff --git a/matlab/ols/parse_ols_style_equation.m b/matlab/ols/parse_ols_style_equation.m index a85a49181..d5eab117d 100644 --- a/matlab/ols/parse_ols_style_equation.m +++ b/matlab/ols/parse_ols_style_equation.m @@ -91,7 +91,7 @@ for i = 1:length(terms) || (strcmp(node_to_parse.type, 'exogenous') && any(strcmp(ds.name, node_to_parse.name))) % Subtract VariableNode from LHS % NB: treat exogenous that exist in ds as endogenous - lhssub = lhssub + evalNode(ds, node_to_parse, line, dseries()); + lhssub = lhssub + evalNode(ds, node_to_parse, line, dseries())*node_sign; else parsing_error('unexpected variable type found', line, node_to_parse); end