Store indicator whether smoother was used with loglinear
Required to keep track of whether estimates were logged. Related to #1407time-shift
parent
5424fde74e
commit
9abac8ccdb
|
@ -6723,6 +6723,11 @@ Fields are of the form:
|
||||||
@end example
|
@end example
|
||||||
@end defvr
|
@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
|
@defvr {MATLAB/Octave variable} oo_.PosteriorTheoreticalMoments
|
||||||
@anchor{oo_.PosteriorTheoreticalMoments}
|
@anchor{oo_.PosteriorTheoreticalMoments}
|
||||||
Variable set by the @code{estimation} command, if it is used with the
|
Variable set by the @code{estimation} command, if it is used with the
|
||||||
|
|
|
@ -141,6 +141,11 @@ ifil = zeros(n_variables_to_fill,1);
|
||||||
run_smoother = 0;
|
run_smoother = 0;
|
||||||
if options_.smoother || options_.forecast || options_.filter_step_ahead || options_.smoothed_state_uncertainty
|
if options_.smoother || options_.forecast || options_.filter_step_ahead || options_.smoothed_state_uncertainty
|
||||||
run_smoother = 1;
|
run_smoother = 1;
|
||||||
|
if options_.loglinear
|
||||||
|
oo_.Smoother.loglinear=1;
|
||||||
|
else
|
||||||
|
oo_.Smoother.loglinear=0;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
filter_covariance=0;
|
filter_covariance=0;
|
||||||
|
|
|
@ -76,6 +76,11 @@ if nargin<16
|
||||||
Trend=zeros(options_.number_of_observed_variables,gend);
|
Trend=zeros(options_.number_of_observed_variables,gend);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if options_.loglinear
|
||||||
|
oo_.Smoother.loglinear=1;
|
||||||
|
else
|
||||||
|
oo_.Smoother.loglinear=0;
|
||||||
|
end
|
||||||
%% write variable steady state
|
%% write variable steady state
|
||||||
oo_.Smoother.SteadyState = ys;
|
oo_.Smoother.SteadyState = ys;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue