Description Usage Arguments Details Value Author(s)
View source: R/resid-block-bs.R
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.
1 | resid_block_bs(x_resid, x_fcst, block_length = 4)
|
x_resid |
data frame containing residuals. |
x_fcst |
data frame containing forecasts and dates. |
block_length |
numeric. Length of bootstrap blocks. |
TODO: change this so that forecast data frame isn't input. Can just return a vector of residuals that gets added to data frame.
The forecast data frame with a new residuals column.
Cameron Roach
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.