Skip to contents

Computes the leave-one-out estimates, pseudovalues, influence values, and bias-corrected jackknife estimate. The bootstrap package's bootstrap::jackknife is the canonical CRAN reference; it is invoked when installed and the rmorie-shape result is reconstructed around it. Falls back to an inline loop otherwise.

Usage

jackknife(data, statistic, ci_level = 0.95)

Arguments

data

Numeric vector or matrix.

statistic

Function returning a scalar.

ci_level

Confidence level.

Value

A morie_jackknife_result.

Examples

set.seed(1)
x <- rnorm(40)
res <- jackknife(x, mean)
res$se
#> [1] 0.1401944