jackknife: Compute jackknive resampling on matrix

View source: R/utilities.R

jackknifeR Documentation

Compute jackknive resampling on matrix

Description

Compute jackknive resampling on matrix

Usage

jackknife(xdata, .method, ...)

Arguments

xdata

matrix

.method

method i.e. cor, parameters

...

further parameters to .method

Value

list with all jackknife matrices

list of matrices

See Also

Other transitioncorrlation: cor_jackknife_matrix(), cor_order(), jackknife_matrix()

Examples

xx <- matrix(rnorm(20), ncol=4)
cortest <- function(x){print(dim(x));cor(x)}
jackknife(xx, cortest)
tmp <- jackknife(xx, cor, use="pairwise.complete.obs", method="pearson")
stopifnot(length(tmp) == 3)
stopifnot(length(tmp[[2]]) == nrow(xx))

wolski/prolfqua documentation built on Dec. 4, 2024, 11:18 p.m.