bootPb: Copy of 'boot::boot' with progress bar

bootPbR Documentation

Copy of boot::boot with progress bar

Description

Copy of boot::boot with progress bar

Usage

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
)

Arguments

data

see boot::boot

statistic

see boot::boot

R

see boot::boot

sim

see boot::boot

stype

see boot::boot

strata

see boot::boot

L

see boot::boot

m

see boot::boot

weights

see boot::boot

ran.gen

see boot::boot

mle

see boot::boot

simple

see boot::boot

...

see boot::boot

parallel

see boot::boot

ncpus

see boot::boot

cl

see boot::boot

Details

Copied from https://stackoverflow.com/questions/37673931/add-a-progress-bar-to-boot-function-in-r

Value

see boot::boot

Examples


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)

bozenne/butils documentation built on Oct. 14, 2023, 6:19 a.m.