data in 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.

data in Bayesian Estimation

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

If variables in my data have different starting time because of availability, how shall I do? To shorten my data so that each variable has the same starting time or extend some variables data with artificial number, like letting those historical values before equal to the first available one?
shouwangsp08
 
Posts: 17
Joined: Mon Jul 17, 2017 6:40 am

Re: data in Bayesian Estimation

Postby StephaneAdjemian » Mon Jul 17, 2017 9:57 am

Hi,

You should not replicate the first observation to complete your sample. There is no rational for that, except if you want to implicitly impose some kind of unit root prior. You have two possibilities :

    1. Shorten your sample so that you have data available for all the variables in all periods.

    2. If for some variables data are not available at the beginning of the sample, treat them as missing observations. You just have to put some NaNs in the datafile for these missing observations.

Note that the missing observations, i.e. the NaNs, need not to be at the beginning of the sample, they can arbitrarily distributed in the sample. I would opt for the second approach.

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: data in Bayesian Estimation

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

Thank your, Professor.
I got it. Your reply helps me a lot.

All bests,

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


Return to Dynare help

Who is online

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