JackAfterBoot: Jackknife-after-Bootstrap

Description Usage Arguments Value Examples

View source: R/JackAfterBoot.R

Description

Calculate the bias and standard deviation estimate for each leave-one-out Bootstrap sample.

Usage

1
JackAfterBoot(data, func = NULL, B)

Arguments

data

the data as a vector

func

the function which applied to data

B

the number of replicates in Bootstrap

Value

the bias and standard deviation estimate for both Bootstrap and Jackknife-after-Bootstrap methods

Examples

1
2
3
4
5
6
7
## Not run: 
data("cars")
data <- cars$speed
JackAfterBoot(data, mean, 1000)
JackAfterBoot(data, median, 1000)

## End(Not run)

YimengSun21/StatComp21062 documentation built on Dec. 23, 2021, 10:18 p.m.