Commit e4c3fdba authored by MichelJuillard's avatar MichelJuillard

fixing simulation backward model

parent e9f97e74
Pipeline #367 failed with stages
in 75 minutes and 5 seconds
......@@ -180,15 +180,16 @@ else
end
% Initialization of the returned simulations.
DynareOutput.endo_simul = NaN(DynareModel.endo_nbr, samplesize+ ...
DynareOutput.endo_simul = NaN(DynareModel.endo_nbr, samplesize + ...
initialconditions.nobs);
for i=1:length(endonames)
if ismember(endonames{i}, initialconditions.name)
DynareOutput.endo_simul(i,1:initialconditions.nobs) = ...
transpose(initialconditions{endonames{i}}.data);
if DynareOptions.use_current_guess
DynareOutput.endo_simul(i,initialconditions.nobs + 1) = ...
transpose(guess{endonames{i}}.data(initialconditions.nobs + 1));
DynareOutput.endo_simul(i,:) = ...
transpose(guess{endonames{i}}.data(1:(samplesize + initialconditions.nobs)));
else
DynareOutput.endo_simul(i,1:initialconditions.nobs) = ...
transpose(initialconditions{endonames{i}}.data);
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment