Do not use concatenation for populating database with fitted values.

time-shift
Stéphane Adjemian (Charybdis) 2019-11-19 12:08:09 +01:00
parent 849aff9ea7
commit 13cadd8e02
2 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ for i = 1:length(Y)
oo_.ols.(tag).Yhat = ...
feval(fitted_names_dict{idx, 3}, oo_.ols.(tag).Yhat);
end
ds = [ds oo_.ols.(tag).Yhat];
ds.(oo_.ols.(tag).Yhat.name) = oo_.ols.(tag).Yhat;
%% Calculate statistics
% Estimate for sigma^2

View File

@ -233,7 +233,7 @@ if any(idx) ...
oo_.olsgibbs.(model_name).Yhat = ...
feval(fitted_names_dict{idx, 3}, oo_.olsgibbs.(model_name).Yhat);
end
ds = [ds oo_.olsgibbs.(model_name).Yhat];
ds.(oo_.olsgibbs.(model_name).Yhat.name) = oo_.olsgibbs.(model_name).Yhat;
% Compute and save posterior densities.
for i=1:n