bootPb | R Documentation |
boot::boot
with progress barCopy of boot::boot
with progress bar
bootPb(
data,
statistic,
R,
sim = "ordinary",
stype = c("i", "f", "w"),
strata = rep(1, n),
L = NULL,
m = 0,
weights = NULL,
ran.gen = function(d, p) d,
mle = NULL,
simple = FALSE,
...,
parallel = c("no", "multicore", "snow"),
ncpus = getOption("boot.ncpus", 1L),
cl = NULL
)
data |
see |
statistic |
see |
R |
see |
sim |
see |
stype |
see |
strata |
see |
L |
see |
m |
see |
weights |
see |
ran.gen |
see |
mle |
see |
simple |
see |
... |
see |
parallel |
see |
ncpus |
see |
cl |
see |
Copied from https://stackoverflow.com/questions/37673931/add-a-progress-bar-to-boot-function-in-r
see boot::boot
m.boot <- function(data, indices) {
d <- data[indices]
mean(d, na.rm = TRUE)
}
tot_rep <- 200
v1 <- rnorm(1000)
b <- bootPb(v1, m.boot, R = tot_rep)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.