Store indicator whether smoother was used with loglinear

Required to keep track of whether estimates were logged. Related to #1407
time-shift
Johannes Pfeifer 2017-03-20 09:37:53 +01:00 committed by Stéphane Adjemian (Charybdis)
parent 5424fde74e
commit 9abac8ccdb
3 changed files with 15 additions and 0 deletions

View File

@ -6723,6 +6723,11 @@ Fields are of the form:
@end example
@end defvr
@defvr {MATLAB/Octave variable} oo_.Smoother.loglinear
Indicator keeping track of whether the smoother was run with the @ref{loglinear} option
and thus whether stored smoothed objects are in logs.
@end defvr
@defvr {MATLAB/Octave variable} oo_.PosteriorTheoreticalMoments
@anchor{oo_.PosteriorTheoreticalMoments}
Variable set by the @code{estimation} command, if it is used with the

View File

@ -141,6 +141,11 @@ ifil = zeros(n_variables_to_fill,1);
run_smoother = 0;
if options_.smoother || options_.forecast || options_.filter_step_ahead || options_.smoothed_state_uncertainty
run_smoother = 1;
if options_.loglinear
oo_.Smoother.loglinear=1;
else
oo_.Smoother.loglinear=0;
end
end
filter_covariance=0;

View File

@ -76,6 +76,11 @@ if nargin<16
Trend=zeros(options_.number_of_observed_variables,gend);
end
if options_.loglinear
oo_.Smoother.loglinear=1;
else
oo_.Smoother.loglinear=0;
end
%% write variable steady state
oo_.Smoother.SteadyState = ys;