bootstrap.cf | R Documentation |
bootstrap a set of correlation functions
bootstrap.cf(cf, boot.R = 400, boot.l = 2, seed = 1234, sim = "geom", endcorr = TRUE)
cf |
correlation matrix of class |
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. |
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
.
Carsten Urbach, curbach@gmx.de
tsboot
, jackknife.cf
data(samplecf) samplecf <- bootstrap.cf(cf=samplecf, boot.R=99, boot.l=2, seed=1442556) plot(samplecf, log=c("y"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.