diff --git a/doc/dynare.texi b/doc/dynare.texi
index 1dfff7e9d2a13df6a5d42f479d4a76a690927132..9267283c9e99ce0d4fdbdc84d9b7f81359ad4138 100644
--- a/doc/dynare.texi
+++ b/doc/dynare.texi
@@ -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
diff --git a/matlab/prior_posterior_statistics.m b/matlab/prior_posterior_statistics.m
index 1aa8cd01a093e109f6a21721248e55d54228dfb4..685e7c30c4c60a460030adc47e7123abc6427166 100644
--- a/matlab/prior_posterior_statistics.m
+++ b/matlab/prior_posterior_statistics.m
@@ -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;
diff --git a/matlab/store_smoother_results.m b/matlab/store_smoother_results.m
index cd9293f40915ec5d70e04cf0b0f2eed2775946ec..d6e3de4cface33f612c696a7f45f8d6d95102505 100644
--- a/matlab/store_smoother_results.m
+++ b/matlab/store_smoother_results.m
@@ -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;