Builds a bootstrapped vector of errors.

.block_bootstrap_overlap_func(
  incidence_vector,
  block_size = 10,
  keep_weekdays_aligned = TRUE
)

Arguments

incidence_vector

numeric vector. Original incidence to bootstrap over.

block_size

integer. Size of a bootstrapping block.

keep_weekdays_aligned

boolean. Set to FALSE if not daily incidence, or if no weekly noise pattern that would require to apply errors to the same day of the week as they were in the original data.

Value

numeric vector. Bootstrapped differences.