resid_block_bs: Block bootstrap

Description Usage Arguments Details Value Author(s)

View source: R/resid-block-bs.R

Description

Generates bootstrapped residuals using a block bootstrapping approach. Works in a different fashion to dbl_block_bs as it must apply the bootstrapped residuals to forecast data frame. Runs several checks to remove incomplete days from historical residuals.

Usage

1
resid_block_bs(x_resid, x_fcst, block_length = 4)

Arguments

x_resid

data frame containing residuals.

x_fcst

data frame containing forecasts and dates.

block_length

numeric. Length of bootstrap blocks.

Details

TODO: change this so that forecast data frame isn't input. Can just return a vector of residuals that gets added to data frame.

Value

The forecast data frame with a new residuals column.

Author(s)

Cameron Roach


camroach87/gefcom2017 documentation built on March 21, 2020, 11:46 p.m.