bootstrapand other resampling functions to actually perform resampling, but may also be called directly.
resample(data, resampleFun, sampler, R = 10000, seed = NULL, statisticNames = NULL, block.size = 100, trace = FALSE, ..., observedIndices = 1:n, call = match.call())
ii, that calculates a statistic of interest for
data[ii, , drop=FALSE], for a vector or matrix, respectively.
Rreplicates are done this many at a time.
TRUEan indication of progress is printed.
bootstrapor another function that calls resample. This may be a character string, e.g. when called from
"resample"; this is a list with components:
seedwhen this function is called.
permutationTest2to actually perform resampling. The results are passed back to the calling function, which may add additional components and a class, which inherits from
This may also be called directly. In contrast to the other functions,
where you have flexibility in how you specify the statistic, here
resampleFun must be a function.
For an overview of all functions in the package, see
## Not run: # # See full set of examples in resample-package, including different # # ways to call all the functions depending on the structure of the data. # data(Verizon) # CLEC <- with(Verizon, Time[Group == "CLEC"]) # bootC <- bootstrap(CLEC, mean, seed = 0) # bootC # ## End(Not run)