bootstrap.cf: bootstrap a set of correlation functions

View source: R/cf.R

bootstrap.cfR Documentation

bootstrap a set of correlation functions

Description

bootstrap a set of correlation functions

Usage

bootstrap.cf(cf, boot.R = 400, boot.l = 2, seed = 1234, sim = "geom",
  endcorr = TRUE)

Arguments

cf

correlation matrix of class cf e.g. obtained with a call to extrac.obs.

boot.R

number of bootstrap samples.

boot.l

block size for autocorrelation analysis

seed

seed for the random number generation used for boostrapping.

sim

The type of simulation required to generate the replicate time series. The possible input values are ‘"fixed"’ (block resampling with fixed block lengths of ‘boot.l’) and ‘"geom"’ (block resampling with block lengths having a geometric distribution with mean ‘boot.l’). Default is ‘"geom"’. See tsboot for details.

endcorr

A logical variable indicating whether end corrections are to be applied when ‘sim’ is ‘"fixed"’. When ‘sim’ is ‘"geom"’, ‘endcorr’ is automatically set to ‘TRUE’; ‘endcorr’ is not used when ‘sim’ is ‘"model"’ or ‘"scramble"’. See tsboot for details.

Value

returns an object of class cf with bootstrap samples added for th correlation function called cf.tsboot. Moreover, the original average of cf is returned as cf0 and the bootstrap errors as tsboot.se. We also copy the input parameters over and set bootstrap.samples to TRUE.

Author(s)

Carsten Urbach, curbach@gmx.de

See Also

tsboot, jackknife.cf

Examples


data(samplecf)
samplecf <- bootstrap.cf(cf=samplecf, boot.R=99, boot.l=2, seed=1442556)
plot(samplecf, log=c("y"))


hadron documentation built on Sept. 9, 2022, 5:06 p.m.