Page 1 of 1
question about Bayesian simulation
Posted:
Thu Feb 09, 2006 6:15 pm
by uvcindy
Dear all:
I am trying to do the Bayesian estimation for my model, I simulate for 100,000 times and from the results, I got the posterior mean and etc. But is there any way I can get the whole series of the draws?
I might need the whole distribution of the parameters.
thanks for your help
Cindy
Posted:
Thu Feb 09, 2006 8:52 pm
by MichelJuillard
Dear Cindy,
the Metropolis parameters draws are stored in the *mh*.mat files. In that files, matrix x2 contains the parameters draws as rows.
The order is as follows:
1) stderr of exogenous shocks
2) stderr of measurement errors if any
3) correlation of exogenous shocks if any
4) correlation of measurement errors if any
5) model coefficients
Inside each category, parameters are ordered in the declaration order in the estimated_params block
As it is supposed to be with Metropolis iterations, parameters values are repeated when the algorithm decides not to jump
Best wishes
Michel
thanks
Posted:
Fri Feb 10, 2006 8:10 pm
by uvcindy
thanks for the fast response.
Posted:
Thu May 25, 2006 1:44 pm
by arnedam
MichelJuillard wrote:
the Metropolis parameters draws are stored in the *mh*.mat files. In that files, matrix x2 contains the parameters draws as rows.
... snip ...
As it is supposed to be with Metropolis iterations, parameters values are repeated when the algorithm decides not to jump
How are the parallel chains organised in the sequence of <name>_mhXXX.mat files? Since the burnin sections should all be in the first part of the mat files, the chains cannot be ordered only in sequence, I should think.
Posted:
Thu May 25, 2006 2:47 pm
by StephaneAdjemian
arnedam wrote:MichelJuillard wrote:
the Metropolis parameters draws are stored in the *mh*.mat files. In that files, matrix x2 contains the parameters draws as rows.
... snip ...
As it is supposed to be with Metropolis iterations, parameters values are repeated when the algorithm decides not to jump
How are the parallel chains organised in the sequence of <name>_mhXXX.mat files? Since the burnin sections should all be in the first part of the mat files, the chains cannot be ordered only in sequence, I should think.
The different chains are stored into different files. If you look inside the folder of your mod file after the bayesian estimation you will find files like:
<NAME_OF_YOUR_MOD_FILE>_mh
X_blck
Y.mat
where
Y = 1,2 (by default we run two parallel chains) gives the chain number.
St
Posted:
Fri May 26, 2006 8:49 am
by arnedam
StephaneAdjemian wrote:The different chains are stored into different files. If you look inside the folder of your mod file after the bayesian estimation you will find files like:
<NAME_OF_YOUR_MOD_FILE>_mhX_blckY.mat
where Y = 1,2 (by default we run two parallel chains) gives the chain number.
Got it, thanks. Turns out we were running only one block which caused my confusion.