pooled_ols/pooled_fgls: fix bug in call to function

time-shift
Houtan Bastani 2019-02-01 11:45:16 +01:00
parent e758d5bdc9
commit 0121e709fe
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ regexcountries = ['(' strjoin(param_common(2:end),'|') ')'];
ast = replace_parameters(ast, country_name, regexcountries, param_regex);
%% Find parameters and variable names in every equation & Setup estimation matrices
[Y, ~, X, ~, ~, residnames] = common_parsing(ds, ast, overlapping_dates);
[Y, lhssub, X, ~, ~, residnames] = common_parsing(ds, ast, overlapping_dates);
clear ast
nobs = zeros(length(Y), 1);
nobs(1) = Y{1}.nobs;
@ -89,7 +89,7 @@ for i = 2:length(Y)
end
nobs(i) = Y{i}.nobs;
end
[Y, X] = put_in_sur_form(Y, X);
[Y, ~, X] = put_in_sur_form(Y, lhssub, X);
%% Handle FGLS
st = dbstack(1);