Jackknife Estimation
Value
If f is NULL (the default), jackknife() returns a named numeric
vector with the following elements:
originalThe observed value of
doapplied toobject.meanThe jackknife estimate of mean of
do.biasThe jackknife estimate of bias of
do.errorThe jackknife estimate of standard error of
do.
If f is a function, jackknife() returns the result of f applied to
the leave-one-out values of do.
See also
Other resampling methods:
bootstrap(),
resample_multinomial(),
resample_uniform()
Examples
x <- rnorm(20)
## Jackknife
jackknife(x, do = mean) # Sample mean
#> original mean bias error
#> 0.07063859 0.07063859 0.00000000 0.18361189
## Get the leave-one-out values instead of summary
jackknife(x, do = mean, f = function(x) { x })
#> [1] 0.12650940 0.05366673 0.02771272 0.12211857 0.07490492 0.06300073
#> [7] 0.02446729 0.04934548 0.04942766 0.05347429 0.10109588 0.06660367
#> [13] 0.07967788 0.09737128 0.01846015 0.14892284 0.05130272 -0.02555760
#> [19] 0.11566826 0.11459902
