powered by
Jackknife Estimation
jackknife(object, ...)# S4 method for numeric jackknife(object, do, ..., f = NULL)
# S4 method for numeric jackknife(object, do, ..., f = NULL)
If f is NULL (the default), jackknife() returns a named numeric
f
NULL
jackknife()
numeric
vector with the following elements:
original
The observed value of do applied to object.
do
object
mean
The jackknife estimate of mean of do.
bias
The jackknife estimate of bias of do.
error
The 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.
function
A numeric vector.
Extra arguments to be passed to do.
A function that takes object as an argument and returns a single numeric value.
A function that takes a single numeric vector (the leave-one-out values of do) as argument.
N. Frerebeau
Other resampling methods: bootstrap(), resample_multinomial(), resample_uniform()
bootstrap()
resample_multinomial()
resample_uniform()
x <- rnorm(20) ## Jackknife jackknife(x, do = mean) # Sample mean ## Get the leave-one-out values instead of summary jackknife(x, do = mean, f = function(x) { x })
Run the code above in your browser using DataLab