Hello,
I am using MLwiN through runmlwin to run multiprocess models with MCMC estimation. I would like to speed up the estimation process and after considering and reading about several alternatives, I would like to try to run parallel chains. However, I couldn't find any recommendation on how to do parallel chains with MLwiN.
Any material or information would be welcome!
Thank you all in advance.
Léa Pessin
Parallel chains
-
- Posts: 1384
- Joined: Mon Oct 19, 2009 10:34 am
Re: Parallel chains
Probably the best way to do this is to run your model with different starting values in several instances of Stata and then use the command to extract the MCMC chains into a datafile. Once these have all run you can merge your datafiles into one and use the command to get the estimates, etc from the chains. We currently don't provide a command to do multichain diagnostics (for example BGRD), however you may be able to use some of the command provided with the -winbugsfromstata- package (http://www2.le.ac.uk/departments/health ... from-stata).
I did write a prefix command some years ago to automate running multiple chains with runmlwin, however this runs the models in series and so wouldn't provide any speedup of the estimation.
Code: Select all
mcmcsum, getchains
Code: Select all
mcmcsum, variables
I did write a prefix command some years ago to automate running multiple chains with runmlwin, however this runs the models in series and so wouldn't provide any speedup of the estimation.
Re: Parallel chains
Thanks for the quick answer.
That's what I have been doing so far but I wasn't sure whether I could use so that's good to know. Do you have any recommendation on how to choose starting values?
I'll also look into winbugs and, if I find anything useful, I'll report back on the forum in case it comes in handy for anyone else.
That's what I have been doing so far but I wasn't sure whether I could use
Code: Select all
mcmc, variables
I'll also look into winbugs and, if I find anything useful, I'll report back on the forum in case it comes in handy for anyone else.