oo_.SmoothedVariables

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

oo_.SmoothedVariables

Postby Stefan_Boeters » Wed Apr 26, 2017 10:38 am

In our estimations, the "oo_.SmoothedVariables" output does not behave as described in the manual.

The manual says about oo_.SmoothedVariables:
Variable set by the estimation command (if used with the smoother option), or by the calib_smoother command.
After an estimation without Metropolis, or if computed by calib_smoother, fields are of the form:
oo_.SmoothedVariables.VARIABLE_NAME
After an estimation with Metropolis, fields are of the form:
oo_.SmoothedVariables.MOMENT_NAME.VARIABLE_NAME

We run "estimation" without the "smoother" option (and with Metropolis draws). Still, our oo_ output contains both oo_.SmoothedVariables.VARIABLE_NAME and oo_.SmoothedVariables.MOMENT_NAME.VARIABLE_NAME fields. This deviates in two respects from the manual: (1) there is output even without the smoother option, (2) both types of output co-exists (whereas the manual suggests that they should be mutually exclusive).

Is this a bug or can this output be meaningfully used?
Stefan_Boeters
 
Posts: 19
Joined: Fri Jul 15, 2016 8:05 am

Re: oo_.SmoothedVariables

Postby Stefan_Boeters » Wed Apr 26, 2017 12:04 pm

Now my confusion is complete:

When I run the estimation with the smoother option, I still get both types of fields, but now the content of oo_.SmoothedVariables.MYVAR and oo_.SmoothedVariables.Mean.MYVAR is exchanged compared to the case without the smoother option.
Stefan_Boeters
 
Posts: 19
Joined: Fri Jul 15, 2016 8:05 am

Re: oo_.SmoothedVariables

Postby Stefan_Boeters » Wed Apr 26, 2017 12:55 pm

Further examination has revealed that the output reversion problem from post #2 appears only with one particular variable, which is the same variable that causes the problem in the thread viewtopic.php?f=1&t=19057. Therefore the problem is most probably specific for our model context and this particular variable. I'll sent up the model code.
Stefan_Boeters
 
Posts: 19
Joined: Fri Jul 15, 2016 8:05 am

Re: oo_.SmoothedVariables

Postby jpfeifer » Wed Apr 26, 2017 5:06 pm

Are you using the unstable version? And is your model maybe stochastically singular?
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: oo_.SmoothedVariables

Postby Stefan_Boeters » Thu Apr 27, 2017 8:54 am

No, I'm using version 4.4.3 and I've not encountered singularity problems with my model.

When I prepared the code for sending it up and double-checked whether I was able to reproduce the results, I found that I was not. This gave me the clue to what had gone wrong. Apparently, I was partly looking at results of older estimation runs that were still included in the oo_ variable had not be overwritten or deleted.

And the reason for this, in turn, was that I was routinely using the "noclearall" option in invoking Dynare (following the suggestion in the thread viewtopic.php?f=1&t=7382 for avoiding spurious warnings). Apparently this caused old fields of the oo_ variable to remain.

Without the "noclearall" option, the oo_ content looks much more reasonable:

  • If I run "estimation" without the "smoother" option, I get oo_.SmoothedVariables.VARIABLE_NAME output, but no oo_.SmoothedVariables.MOMENT_NAME.VARIABLE_NAME output.
  • If I run "estimation" with the "smoother" option, I get oo_.SmoothedVariables.MOMENT_NAME.VARIABLE_NAME output, but no oo_.SmoothedVariables.VARIABLE_NAME output.
So the only question that remains is: What is the interpretation of the oo_.SmoothedVariables.VARIABLE_NAME output if I run "estimation" without the "smoother" option, but with Metropolis draws?
Stefan_Boeters
 
Posts: 19
Joined: Fri Jul 15, 2016 8:05 am

Re: oo_.SmoothedVariables

Postby jpfeifer » Thu Apr 27, 2017 8:58 am

1. Please upgrade to the unstable version due to the various bugfixes available (http://www.dynare.org/DynareWiki/KnownBugs). It will be released as Dynare 4.5 in the next month or so.
2. From the bug list
ESTIMATION: Results displayed after Bayesian estimation when not specifying the smoother-option are based on the parameters at the mode from mode-finding instead of the mean parameters from the posterior draws. This affects the smoother results displayed, but also calls to subsequent command relying on the parameters stored in M_.params like stoch_simul (a workaround can be found here)
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests