cf_boot: Bootstrapped CF mixin constructor

cf_bootR Documentation

Bootstrapped CF mixin constructor

Description

Bootstrapped CF mixin constructor

Usage

cf_boot(.cf = cf(), boot.R, boot.l, seed, sim, endcorr, cf.tsboot,
  icf.tsboot = NULL, resampling_method)

Arguments

.cf

cf object to extend.

boot.R

Integer, number of bootstrap samples used.

boot.l

Integer, block length in the time-series bootstrap process.

seed

Integer, random number generator seed used in bootstrap.

sim

Character, sim argument of tsboot.

endcorr

Boolean, endcorr argumetn of tsboot.

cf.tsboot

List, result from the tsboot function for the real part.

icf.tsboot

List, result from the tsboot function for the imaginay part.

resampling_method

Character, either 'bootstrap' or 'jackknife'

Details

The following fields will also be made available:

  • cf0: Numeric vector, mean value of original measurements, convenience copy of cf.tsboot$t0.

  • tsboot.se: Numeric vector, standard deviation over bootstrap samples.

  • boot.samples: Logical, indicating whether there are bootstrap samples available. This is deprecated and instead the presence of bootstrap samples should be queried with inherits(cf, 'cf_boot').

  • error_fn: Function, takes a vector of samples and computes the error. In the bootstrap case this is just the sd function. Use this function instead of a sd in order to make the code compatible with jackknife samples.

Value

returns the input object of class cf with the bootstrap mixin added

See Also

Other cf constructors: cf_meta(), cf_orig(), cf_principal_correlator(), cf_shifted(), cf_smeared(), cf_subtracted(), cf_weighted(), cf()


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