pandemic_stats: Relevant Statistics of the Pandemic Model

Description Usage Arguments Details Value References See Also Examples

View source: R/pandemic_stats.R

Description

This function provides short and long-term predictions for the pandemic. 95% credible intervals are assigned to the number of cases for every future date predicted, as well as for the total number of cases, and dates for the peak and end of the pandemic.

Short-term predictions are made on the cumulative counts and long-term predictions are based on the new case counts.

Usage

1

Arguments

object

an object of S3 class pandemicPredicted created by method posterior_predict.pandemicEstimated of function posterior_predict.

Details

Total Number of Cases

The total number of cases is obtained by adding the cumulative total cases observed in the data to the predicted new cases for the next 1,000 days.

Estimated Peak Dates

The peak of the pandemic curve represents the highest number of daily cases reported.

The median, 2.5% and 97.5% percentiles are calculated on the mean number of new cases for the pandemic curve (starting from the first observed data point until 1,000 days after the last date observed in the data). The 95% credible interval for the peak of cases is selected such that the two limiting dates of the 97.5% percentile curve coincides with the highest value of the 2.5% percentile curve. This guarantees that all possible curves belonging to the confidence band will peak within the defined interval.

End of the Pandemic Dates

Represents the 99% percentile of the total number of cases in the pandemic.

Value

An object of S3 class pandemicStats. This object is a list containing the following elements:

References

CovidLP Team, 2020. CovidLP: Short and Long-term Prediction for COVID-19. Departamento de Estatistica. UFMG, Brazil. URL: http://est.ufmg.br/covidlp/home/en/

See Also

load_covid, pandemic_model, posterior_predict.pandemicEstimated and plot.pandemicPredicted.

Examples

1
2
3
4
5
6
7
8
## Not run: 
italy = load_covid("italy")
estim = pandemic_model(italy, case_type = "confirmed", covidLPconfig = TRUE)
pred = posterior_predict(estim)
stats = pandemic_stats(pred)
stats

## End(Not run)

PandemicLP documentation built on Oct. 10, 2021, 1:06 a.m.