ols_style parsing: remove regressors that are equal to zero

time-shift
Houtan Bastani 2019-02-05 16:38:25 +01:00
parent 553f1d3068
commit fd09ba1fca
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 6 additions and 0 deletions

View File

@ -179,6 +179,12 @@ end
Y = Y(fp:lp);
if ~isempty(X)
X = X(fp:lp);
names = X.name;
for i = 1:length(names)
if all(X.(names{i}).data == 0)
X = X.remove(names{i});
end
end
end
if ~isempty(lhssub)
lhssub = lhssub(fp:lp);