handle hard-coded constant*variable in AR(1)

time-shift
Houtan Bastani 2019-01-17 16:44:20 +01:00
parent 8574e94bdb
commit b62ec7dc55
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@ while ~isempty(plus_node) || ~isempty(last_node_to_parse)
elseif strcmp(node_to_parse.node_type, 'BinaryOpNode') && strcmp(node_to_parse.op, '*')
% Parse param_expr * endog_expr
Xtmp = parseTimesNode(ds, node_to_parse, line);
if length(Xtmp.name) > 1
if length(Xtmp.name) > 1 || ...
(length(Xtmp.name) == 1 && ~isnan(str2double(Xtmp.name)))
% Handle constraits
% Look through Xtmp names for constant
% if found, subtract from LHS