i2extras adds additional functionality to the incidence2 package.
What does it do?
The main features of the package include:
fit_curve()
andgrowth_rate()
: fit a trend (poisson / negative binomial) to anincidence2
object and calculate the associated growth rate.add_rolling_average()
: add a rolling average to anincidence2
object.bootstrap()
: generates a bootstrappedincidence2
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.
Installing the package
You can install the released version of {i2extras} from CRAN with:
install.packages("i2extras")
Resources
Getting help online
Bug reports and feature requests should be posted on github using the issue system. All other questions should be posted on the RECON slack channel see https://www.repidemicsconsortium.org/forum/ for details on how to join.