Description Arguments Value Examples

Take an object and redo the computation (useful for sampling)

`x` |
object to recompute |

`progress` |
report progress of the computation? |

`...` |
arguments passed to and from related methods |

Returns an object of the same type, after repeating the sampling (perhaps with more iterations)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ```
## Sample from the posteriors for two models
data(puzzles)
## Main effects model; result is a BFmcmc object, inheriting
## mcmc from the coda package
bf = lmBF(RT ~ shape + color + ID, data = puzzles, whichRandom = "ID",
progress = FALSE)
## recompute Bayes factor object
recompute(bf, iterations = 1000, progress = FALSE)
## Sample from posterior distribution of model above, and recompute:
chains = posterior(bf, iterations = 1000, progress = FALSE)
newChains = recompute(chains, iterations = 1000, progress=FALSE)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.