jackknife | R Documentation |
Jackknife Estimation
## S4 method for signature 'DiversityIndex'
jackknife(object, f = NULL)
object |
An R object (typically a DiversityIndex object). |
f |
A |
If f
is NULL
(the default), jackknife()
returns a named numeric
vector with the following elements:
original
The observed value of do
applied to object
.
mean
The jackknife estimate of mean of do
.
bias
The jackknife estimate of bias of do
.
error
he 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
.
N. Frerebeau
Other resampling methods:
bootstrap()
,
resample()
## Data from Conkey 1980, Kintigh 1989
data("cantabria")
## Shannon diversity index
(h <- heterogeneity(cantabria, method = "shannon"))
## Jackknife resampling
jackknife(h)
jackknife(h, f = summary)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.