Generates bootstrap estimations of an event date.
Usage
# S4 method for class 'EventDate'
bootstrap(
object,
level = 0.95,
probs = c(0.05, 0.95),
n = 1000,
calendar = get_calendar(),
progress = getOption("kairos.progress"),
...
)Arguments
- object
- level
A length-one
numericvector giving the confidence level.- probs
A
numericvector of probabilities with values in \([0,1]\).- n
A non-negative
integerspecifying the number of bootstrap replications.- calendar
An
aion::TimeScaleobject specifying the target calendar (seeaion::calendar()). IfNULL, rata die are returned.- progress
A
logicalscalar: should a progress bar be displayed?- ...
Currently not used.
Value
A data.frame.
Details
A large number of new bootstrap assemblages is created, with the same sample size, by resampling each of the original assemblage with replacement. Then, examination of the bootstrap statistics makes it possible to pinpoint assemblages that require further investigation.
A five columns data.frame is returned, giving the bootstrap
distribution statistics for each replicated assemblage (in rows)
with the following columns:
minMinimum value.
meanMean value (event date).
maxMaximum value.
Q5Sample quantile to 0.05 probability.
Q95Sample quantile to 0.95 probability.
See also
Other resampling methods:
bootstrap.MeanDate,
jackknife.EventDate,
jackknife.MeanDate
