Latent variables with data

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.

Latent variables with data

Postby Stefan_Boeters » Tue Apr 25, 2017 2:34 pm

We are currently experimenting with different sets of observables for a DSGE model in order to find the set with which the model performs best. In this process, the endogenous variables of the model fall into three distinct classes:

(1) latent variables, for which there are no empirical time series,
(2) observables, which are declared in the "varobs" statement and for which we have empirical data,
(3) "potential observables", which are not included in the "varobs" statement, but for which we have data (which is assigned to the variables in the data reading routine).

How does Dynare treat these "potential observables"? Our assumption was that they would be treated the same as the latent variables, i.e. that it should not matter at all if some empirical values are assigned to these variables in the data reading routine.

However, it does seem to matter after all. Results of the estimation diverge dependent on whether or not we assign empirical values to these potential observables. In certain cases it looks like if Dynare fits the shocks to match these potential observables even though they are not in the "varobs" list.

Can anyone make sense of this? Are you only allowed to assign empirical values to the observables that are in the "varobs" list? Shouldn't Dynare then give a warning whenever this is not the case?
Stefan_Boeters
 
Posts: 19
Joined: Fri Jul 15, 2016 8:05 am

Re: Latent variables with data

Postby jpfeifer » Tue Apr 25, 2017 3:45 pm

Can you please provide me with codes to replicate the issue? You can e.g. send them per email.
------------
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: Latent variables with data

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

As so often, my focus on the problem shifted when I was busy preparing a condensed and cleaned version of the model to submit. There is a related problem with the field "SmoothedVariables" of oo_, which I'll post in a separate thread shortly.
Stefan_Boeters
 
Posts: 19
Joined: Fri Jul 15, 2016 8:05 am

Re: Latent variables with data

Postby Stefan_Boeters » Wed Apr 26, 2017 1:02 pm

Most probably, this problem boils down to a problem with the robustness of the oo_.SmoothedVariables output reported in this thread: viewtopic.php?f=1&t=19129. Until now, we were able to identify the problem only with one particular endogenous variable (which, apart from this, seems to behave fine). So, indeed, I need to send up the code to clarify the issue.
Stefan_Boeters
 
Posts: 19
Joined: Fri Jul 15, 2016 8:05 am

Re: Latent variables with data

Postby Stefan_Boeters » Thu Apr 27, 2017 9:04 am

Actually, the two points were closely related. As explained in the thread viewtopic.php?f=1&t=19129, I was looking at output from old estimation runs that had not been deleted from the oo_ output, and I was confused about the co-existence of oo_.SmoothedVariables.VARIABLE_NAME and oo_.SmoothedVariables.MOMENT_NAME.VARIABLE_NAME.

Thanks, Johannes, for the offer to send up the code. As so often, the urge to produce a cleaned set of files with reproducible results was enough to give the decisive clue to the cause of the problem.
Stefan_Boeters
 
Posts: 19
Joined: Fri Jul 15, 2016 8:05 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests