Page 1 of 1

data in Bayesian Estimation

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

Re: data in Bayesian Estimation

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

Re: data in Bayesian Estimation

PostPosted: Mon Jul 17, 2017 10:44 am
by shouwangsp08
Thank your, Professor.
I got it. Your reply helps me a lot.

All bests,

Samson