jackknife: Jackknife

Description Usage Arguments Value Dependencies Author(s) See Also Examples

View source: R/nBootstrap-jackknife.R

Description

Jackknife

Usage

1
jackknife(x, func, ...)

Arguments

x

Matrix, data frame, or vector. Sample data.

func

Fit function. The first argument should be sample data.

...

Additional named arguments to pass to func.

Value

Returns a matrix if func returns a vector. Otherwise, it returns a list.

Dependencies

Author(s)

Ivan Jacob Agaloos Pesigan

See Also

Other Nonparametric Bootstrap Functions: ci_bca_helper(), ci_bca(), ci_bc(), ci_pc(), func_jackknife(), func_thetahatstar_nb(), func_xstar_nb(), thetahatstar_nb(), xstar_nb()

Examples

1
2
3
4
5
x <- rnorm(n = 100)
func <- median

output <- jackknife(x, func = func)
hist(output)

jeksterslab/nBootstrap documentation built on Dec. 20, 2021, 10:11 p.m.