i2extras adds additional functionality to the incidence2 package.
The main features of the package include:
add_rolling_average(): add a rolling average to an
bootstrap(): generates a bootstrapped
incidence2 object by re-sampling, with replacement, the original dates of events.
find_peak(): locates the peak time of the epicurve.
estimate_peak(): uses bootstrap to estimate the peak time (and related confidence interval) of a partially observed outbreak.
Once it is released on CRAN, you will be able to install the stable version of the package with:
The development version can be installed from GitHub with:
An overview of i2extras is provided in the included vignettes: