I believe that dynare_estimation_1.m contains a bug. I ran across the bug because I wanted to recovered smoothed shocks from a model using the stored mode from estimation. To do this, I used the 'mode_file = ', 'mode_compute = 0', and 'smoother' options, among others, in the estimation command. However, Dynare never produces the smoothed shocks. The reason is because of a bug in line 124 of dynare_estimation_1.m, which contains the conditional statement that should lead to the code that triggers the smoother. Line 124 reads:
if isequal(options_.mode_compute,0) && isempty(options_.mode_file) && options_.mh_posterior_mode_estimation==0
The problem is that the first two logical expressions are never both true. If mode_compute is zero, then Dynare requires a mode_file (this is documented here: http://www.dynare.org/manual/index_24.h ... estimation). If there is a mode_file, as required, then the second logical expression in the if statement is false. That means that Matlab never evaluates this expression to be true, which means that under no circumstance can the code that follows be executed.
I am not sure where to submit bug reports, so I figured that maybe the help page was appropriate. Many thanks to the developers for their time in developing the software. If you get a chance to look at this, I would appreciate it.
Best,
Ben