yearly data for bayesian 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.

yearly data for bayesian estimation

Postby xusherry » Thu Jul 28, 2016 6:25 am

Dear all:
I'm a beginner in DSGE, now i want to try use bayesian method to estimate some parameters, and the data i use is yearly data, this means the data in the mat file is yearly data, but i wander how the dynare know the data is quarterly data or yearly data, in other words, in which way can i tell the dynare in the mat file is the yearly data, i know for some parameters ,the frequency of data may change the value of parameters. I have read the dynare manual, but still can't figure out.
Looking forward your help,thank you very much !
xusherry
 
Posts: 11
Joined: Sat Jul 02, 2016 2:10 pm

Re: yearly data for bayesian estimation

Postby jpfeifer » Thu Jul 28, 2016 6:31 am

For Dynare the frequency of your data does not matter. A period is a period, regardless of whether a quarter or a year. It is the job of the model builder to make sure the parameterization matches the data frequency.
------------
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: yearly data for bayesian estimation

Postby xusherry » Thu Jul 28, 2016 7:07 am

jpfeifer wrote:For Dynare the frequency of your data does not matter. A period is a period, regardless of whether a quarter or a year. It is the job of the model builder to make sure the parameterization matches the data frequency.

Thank you very much, this really helps me a lot!
xusherry
 
Posts: 11
Joined: Sat Jul 02, 2016 2:10 pm

Re: yearly data for bayesian estimation

Postby shouwangsp08 » Mon Jul 17, 2017 6:44 am

What if my data is mixed with quarterly data and yearly data? In order to make it consistent, is it possible to transform yearly data to quarterly data, e.g. each quarterly data=yearly/4?
shouwangsp08
 
Posts: 17
Joined: Mon Jul 17, 2017 6:40 am

Re: yearly data for bayesian estimation

Postby StephaneAdjemian » Mon Jul 17, 2017 10:18 am

Hi,

It is possible to transform yearly data into quarterly data, or quarterly data into monthly data, using some ad hoc time series tools. But these transformations are not model consistent and you may end up with undesired properties in the data. My preferred approach would be to write the model in the highest frequency and add measurement equations for linking, say, the theoretical monthly variables to, say, quarterly observed variables. For instance, for linking the monthly theoretical output flow to the quarterly observed output you would have something like:

Code: Select all
Yobs = y + y(-1) +y(-2);

Because Yobs is not observed in each period (since some variables, say consumption, are observed monthly) you will have to use missing variables. Quarterly output would be observed in March, June, September and December. Other months should be treated as missing observations. (with NaNs in your database).

Best,
Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Re: yearly data for bayesian estimation

Postby shouwangsp08 » Mon Jul 17, 2017 10:40 am

I see. Thanks a lot for your reply.
shouwangsp08
 
Posts: 17
Joined: Mon Jul 17, 2017 6:40 am

Re: yearly data for bayesian estimation

Postby jpfeifer » Mon Jul 17, 2017 3:52 pm

Section 7 on "Time Aggregation" in 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 provides more details on this.
------------
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: yearly data for bayesian estimation

Postby shouwangsp08 » Mon Jul 17, 2017 3:58 pm

Thank you, Professor.
Best regards,

Samson
shouwangsp08
 
Posts: 17
Joined: Mon Jul 17, 2017 6:40 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests