Nothing
# new feature batching acceptance rates
set.seed(42)
library(mcmc)
h <- function(x) if (all(x >= 0) && sum(x) <= 1) return(1) else return(-Inf)
out <- metrop(h, rep(0, 5), nbatch = 100, blen = 100, scale = 0.1,
debug = TRUE)
all.equal(out$accept, mean(out$accept.batch))
foo <- matrix(out$debug.accept, nrow = out$blen)
bar <- colMeans(foo)
all.equal(out$accept.batch, bar)
options(digits = 4) # try to keep insanity of computer arithmetic under control
out$accept
t.test(out$accept.batch)$conf.int
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.