Reproduces boot::tsboot for the sim = "fixed" (moving
block) and sim = "geom" (stationary) resampling schemes.
Usage
morie_tsboot(
tseries,
statistic,
R,
l,
sim = "fixed",
endcorr = TRUE,
n.sim = NROW(tseries),
...
)Arguments
- tseries
A numeric vector / matrix (the series).
- statistic
Function
(series) -> numeric.- R
Number of replicates.
- l
Block length.
- sim
"fixed"(moving block, default) or"geom"(stationary bootstrap).- endcorr
Apply end-correction (default TRUE).
- n.sim
Length of each simulated series (default
NROW).- ...
Passed on to
statistic.
