"[D]eclar[ing] endogenous variables after the estimation..."

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.

"[D]eclar[ing] endogenous variables after the estimation..."

Postby Dr. En Ami » Sat Jul 06, 2013 11:34 pm

What is the syntax for doing so? For example, if I want to only forecast y in RBC_est.mod, what would I add to the model file? I tried adding "var y;" to the end of the model to no avail. Thanks, --En
Dr. En Ami
 
Posts: 18
Joined: Sat Jul 06, 2013 11:19 pm

Re: "[D]eclar[ing] endogenous variables after the estimation

Postby jpfeifer » Sun Jul 07, 2013 8:11 am

Write the variable names after the estimation command:
Code: Select all
estimation(...) y;
------------
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: "[D]eclar[ing] endogenous variables after the estimation

Postby AbrahamVela » Mon Oct 06, 2014 11:44 pm

Dear Johannes: I do not understand why the estimate command is required me to list the endogenous veriables I want to see the results. My question is whether I shall list the same veriables in the varobs command (such a y_obs) or as they are specified in the model (just "y"). May be it does not matter because I have an expression in the model stating y_obs=y and in the datafile as well. Of course y_obs is in my datafile. The bottom line is when this is needed and what names I shall use after estimate. My intuition is that htese must be the same as in varobs command.
Thanks in advance for your support.
AbrahamVela
 
Posts: 8
Joined: Tue Aug 19, 2014 5:15 am

Re: "[D]eclar[ing] endogenous variables after the estimation

Postby jpfeifer » Tue Oct 07, 2014 8:33 am

With the unstable version, you have the option
Code: Select all
consider_all_endogenous

and
Code: Select all
consider_only_observed

options to do this task. The reason Dynare asks is that posterior moment computation can be really time intensive and doing it for only selected variables saves time.

Regarding which you should choose: it depends what you are interested in. For stationary models, people are usually interested in the endogenous variables. However, for nonstationary models, people are sometimes interested in the observed growth rates entered as observables.
------------
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 13 guests