## The R Companion to MCSM (6)

**T**he chapter on the Metropolis algorithm is now completed and we are thus tantalisingly close to the end! (The end of the complete draft…) The completed chapters are

- Introduction to R programming
- Random variable generation
- Monte Carlo methods
- Controlling and accelerating convergence
- Monte Carlo optimization
- Metropolis-Hastings algorithms
- [=8] Convergence monitoring for MCMC algorithms

We have now reached 226 pages, 72K words (whatever that means using *wc* on a pdf file), and 69 figures… There still seems to be a possibility that the final chapter on Gibbs sampling could be ready by the end of the month, if both George and I make rush for it. There is no major surprise in the current chapter, with independent Metropolis and random walk Metropolis algorithms being the central heroes, but there still was work to be done, in terms of coding new examples. We also included a nice Bayesian model choice illustration inspired from * Bayesian Core* where the Metropolis-Hastings algorithm only moves over model indices, the parameters being analytically integrated out. Once the first draft is over, the next stepstone will be the design of the corresponding package, collecting and classifying our

**R**codes and few datasets…

**PS**â€”The title preferred by those who voted on the poll seems to be * Monte Carlo Methods with R*.

March 20, 2009 at 10:09 pm

[…] width analysis of MCMC output by Galin Jones that had me convinced it should be included in the R book (Chapter […]

March 10, 2009 at 6:50 am

[…] in not too long! The R Guide to Monte Carlo Methods has to be completed first, though… Soon there, soon […]