jackknife: Nonparametric jackknife resampling for animal movement...

View source: R/jackknife.R

jackknifeR Documentation

Nonparametric jackknife resampling for animal movement (social structure) data

Description

jackknife with sampling periods within k-time-unit intervals being omitted in turn, giving T/k jackknife replicates, with T is the number of sampling periods;

Usage

jackknife(X, tp, bin_len)

Arguments

X

A list or matrix containing animal movement or social structure data

tp

A set of observation time

bin_len

An integer represents len-time-unit intervals

Value

The jackknife samples of animal movement or social structure data.

References

Quenouille, M. (1949). Approximate tests of correlation in time series. Journal of the Royal Statistical Society, Soc. Ser. B, 11, 18-84.

Tukey, J. W. (1958). Bias and confidence in not quite large samples (abstract), Annals of Mathematical Statistics, 29, 614.

Efron, B. (1979). Bootstrap methods: Another look at the jackknife. Annals of Statistics, 7, 1-26.

Examples

# Example
# load data
data(simulationA)
tp <- simulationA@tp
# if X is a list
list_simulation_A <- simulationA@list_simulation_A
jackknife_sample <- jackknife(list_simulation_A, tp, bin_len=50)
# if X is a matrix
matrix_simulation_A <- simulationA@matrix_simulation_A
jackknife_sample <- jackknife(matrix_simulation_A, tp, bin_len=50)


Alexhaoge/rCLIFII documentation built on Sept. 28, 2023, 11:23 p.m.