ggoutbreakA collection of tools from COVID-19 with focus on simplicity and a goal to provide a simple pipeline from data to visualisation. The main features are listed below. The documentation is in development. For the time being the best resources are the other vignettes including:
vignette("covid-timeseries",package="ggoutbreak")vignette("incidence-trends",package="ggoutbreak")vignette("variant-proportions",package="ggoutbreak")vignette("weekly-incidence",package="ggoutbreak")vignette("rt-from-incidence",package="ggoutbreak")
vignette("simulation-test-models",package="ggoutbreak")ggoutbreak is hosted on the AI4CI r-universe. Installation
from there is as follows:
options(repos = c(
"ai4ci" = 'https://ai4ci.r-universe.dev/',
CRAN = 'https://cloud.r-project.org'))
# Download and install ggoutbreak in R
install.packages("ggoutbreak")You can install the development version of ggoutbreak
from GitHub with:
Simulation
Estimation
Visualization
ggplot2 visualisations of epidemic time series,
including adjustment for population and variable time steps.mean_quantile_bias - the average of the universal
residuals. Lower values are better.mean_bias - the bias on the natural scale (which may be
interpreted as additive or multiplicative depending on the link)pit_was - an unadjusted probability integral transform
histogram Wasserstein distance from the uniform (lower values are
better).unbiased_pit_was - an PIT Wasserstein distance from the
uniform, adjusted for estimator bias (lower values are better). This is
a measure of calibration.directed_pit_was - a PIT Wasserstein distance from the
uniform, directed away from the centre, adjusted for estimator bias
(values closer to zero are better, positive values indicate
overconfidence, and negative values excessively conservative
estimates).percent_iqr_coverage - the percentage of estimators
that include the true value in their IQR. For a perfectly calibrated
estimate this should be 0.5. Lower values reflect overconfidence, higher
values reflect excessively conservative estimates. This is a measure of
calibration but is influenced by bias.unbiased_percent_iqr_coverage - the percentage of
estimators that include the true value in their IQR once adjusted for
bias. This should be 0.5. This is a measure of calibration, and tells
you which direction (smaller numbers are over-confident, larger values
excessively conservative).mean_prediction_interval_width_50 - the prediction
interval width is a measure of sharpness (smaller values are sharper).
Sharper estimators are superior if they are unbiased and well
calibrated.mean_crps - the mean value of the continuous rank
probability score for each point estimate (lower values are better)threshold_misclassification_probability - if a metric
has a natural threshold like 1 for \(R_t\) then this measures how probable it is
that the estimate will propose the epidemic is shrinking when it is
growing and vice versa. Lower is better.nnet based multinomial proportion models.Simple adaptor for EpiEstim reference method