bayes.boot | R Documentation |
Performs a Bayesian bootstrap for a statistic defined via a suitable function.
bayes.boot(x, fun, nboot = 1000, cluster = NULL, ...)
x |
a numeric vector to be passed as the first argument to |
fun |
the function to bootstrap; must accept data |
nboot |
the number of bootstraps to perform |
cluster |
an optional cluster for running bootstraps in parallel; must be set up using
|
... |
any other arguments for |
An object of class bayes.boot
; a data frame with the following columns:
boot.id |
the bootstrap iteration index |
... |
any columns returned by |
Ryan Thompson <ryan.thompson1@unsw.edu.au>
set.seed(123)
boot <- bayes.boot(MASS::galaxies, fun = fit.family, nboot = 100)
head(boot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.