pooled_ols: only save certain variables oo_ structure when passing back to pooled_fgls
parent
0121e709fe
commit
f4b8735431
|
@ -95,17 +95,16 @@ end
|
||||||
st = dbstack(1);
|
st = dbstack(1);
|
||||||
if strcmp(st(1).name, 'pooled_fgls')
|
if strcmp(st(1).name, 'pooled_fgls')
|
||||||
save_structure_name = 'pooled_fgls';
|
save_structure_name = 'pooled_fgls';
|
||||||
|
% Pass vars back to pooled_fgls
|
||||||
|
oo_.pooled_fgls.residnames = residnames;
|
||||||
|
oo_.pooled_fgls.Y = Y.data;
|
||||||
|
oo_.pooled_fgls.X = X.data;
|
||||||
|
oo_.pooled_fgls.pbeta = X.name;
|
||||||
|
oo_.pooled_fgls.country_name = country_name;
|
||||||
else
|
else
|
||||||
save_structure_name = 'pooled_ols';
|
save_structure_name = 'pooled_ols';
|
||||||
end
|
end
|
||||||
|
|
||||||
%% Save
|
|
||||||
oo_.(save_structure_name).residnames = residnames;
|
|
||||||
oo_.(save_structure_name).Y = Y.data;
|
|
||||||
oo_.(save_structure_name).X = X.data;
|
|
||||||
oo_.(save_structure_name).pbeta = X.name;
|
|
||||||
oo_.(save_structure_name).country_name = country_name;
|
|
||||||
|
|
||||||
%% Estimation
|
%% Estimation
|
||||||
% Estimated Parameters
|
% Estimated Parameters
|
||||||
[q, r] = qr(X.data, 0);
|
[q, r] = qr(X.data, 0);
|
||||||
|
|
Loading…
Reference in New Issue