
Resample Mean Ceramic Dates
resample_mcd.Rd
bootstrap()
generate bootstrap estimations of an MCD.jackknife()
generate jackknife estimations of an MCD.
Usage
# S4 method for class 'MeanDate'
bootstrap(object, n = 1000, f = NULL, calendar = get_calendar())
# S4 method for class 'MeanDate'
jackknife(object, f = NULL, calendar = get_calendar())
# S4 method for class 'MeanDate'
simulate(object, nsim = 1000)
Arguments
- object
- n
A non-negative
integer
specifying the number of bootstrap replications.- f
A
function
that takes a single numeric vector (the result of the resampling procedure) as argument.- calendar
An
aion::TimeScale
object specifying the target calendar (seeaion::calendar()
).- nsim
A non-negative
integer
specifying the number of simulations.
Value
If f
is NULL
, bootstrap()
and jackknife()
return a data.frame
with the following elements (else, returns the result of f
applied to the
n
resampled values) :
- original
The observed value.
- mean
The bootstrap/jackknife estimate of mean.
- bias
The bootstrap/jackknife estimate of bias.
- error
The boostrap/jackknife estimate of standard erro.