Question regarding "varobs" command

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.

Question regarding "varobs" command

Postby Lautaro2453 » Thu Jun 04, 2015 3:42 pm

Hi, I hope you're fine.

I'm new using dynare. I need to estimate a DSGE model using bayesian estimation or maximum likelihood.

My question is regarding the command named "varobs". I check that this command declares the list of observed endogenous variables which are loaded in the datafile and are used to estimate the parameters.

I check in all examples of estimation of DSGE models using bayesian or maximum likelihood estimation that in "varobs" declares a minimum amount of endogenous variables. Allways declare less variables than the include in "var".

For example I attach one example from Lawrence Christiano. At the code we have 7 endogenous variables declared in "var": pie x r rstar da tau dy.
But in "varobs" It declares only: pie dy.

What is the criteria to define the variables to include in "varobs"? Why x r rstar da and tau are excluded from varobs?

Thanks for your time, kind regards. Lautaro
Attachments
cggest.mod
Dynare Code from L. Christiano.
(3.48 KiB) Downloaded 110 times
Lautaro2453
 
Posts: 7
Joined: Thu Jun 04, 2015 3:23 pm

Re: Question regarding "varobs" command

Postby kgarb » Thu Jun 04, 2015 7:31 pm

I'm relatively new to Dynare myself, so hopefully someone will correct me if I make a mistake.

"varobs" is used to define the variables for which you have data, and want the estimation to take that data into account. The variables listed under "varobs" do not have to be endogenous variables from your model, they only need to have data available to be included in the estimation. One example would be oil import prices in a small open economy - you can use the WTI oil price as a varobs in your model, but it would be declared under varexo if you didn't have data for it.

I hope that quick explanation helps!

Ned has another simple explanation here as well.
kgarb
 
Posts: 34
Joined: Thu May 28, 2015 9:19 pm

Re: Question regarding "varobs" command

Postby jpfeifer » Fri Jun 05, 2015 7:34 am

The short answer is: varobs includes a (potentially exhaustive) subset of the variables declared in the "var" statement for which you have data and which you want to use for estimation. See also "Remark 7 (Which Observables for Estimation?)" of Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf.
------------
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: Question regarding "varobs" command

Postby Lautaro2453 » Fri Jun 05, 2015 11:14 am

Perfect.

Thanks for your answer. I will look at the link you sent me.

Thanks for your answer.

Regards,

Lautaro
Lautaro2453
 
Posts: 7
Joined: Thu Jun 04, 2015 3:23 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 9 guests