# Bayesian Core and loose logs

July 26, 2011
By

(This article was first published on Xi'an's Og » R, and kindly contributed to R-bloggers)

Jean-Michel (aka Jean-Claude!) Marin came for a few days so that we could make late progress on the revision of our book Bayesian Core towards an Use R! version. In one of the R programs in the mixture chapter, we were getting improbable answers, until we found an R mistake in the shape of

 > sum(c(1,2,3,log=TRUE))
[1] 7
> sum(c(1,2,3),log=TRUE)
[1] 7


which was not detected by the compiler… There are surely plenty of good reasons for this to happen and it did not take long to fix the bug, still… annoying!

Filed under: Books, R, Statistics, University life Tagged: Bayesian Core, Introducing Monte Carlo Methods with R, R, revision, Use R

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

Tags: , , , , , , ,