Page 1 of 1

yearly data for bayesian estimation

PostPosted: Thu Jul 28, 2016 6:25 am
by xusherry
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 !

Re: yearly data for bayesian estimation

PostPosted: Thu Jul 28, 2016 6:31 am
by jpfeifer
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.

Re: yearly data for bayesian estimation

PostPosted: Thu Jul 28, 2016 7:07 am
by xusherry
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!

Re: yearly data for bayesian estimation

PostPosted: Mon Jul 17, 2017 6:44 am
by shouwangsp08
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?

Re: yearly data for bayesian estimation

PostPosted: Mon Jul 17, 2017 10:18 am
by StephaneAdjemian
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.

Re: yearly data for bayesian estimation

PostPosted: Mon Jul 17, 2017 10:40 am
by shouwangsp08
I see. Thanks a lot for your reply.

Re: yearly data for bayesian estimation

PostPosted: Mon Jul 17, 2017 3:52 pm
by jpfeifer
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.

Re: yearly data for bayesian estimation

PostPosted: Mon Jul 17, 2017 3:58 pm
by shouwangsp08
Thank you, Professor.
Best regards,

Samson