calc_distribution_report_diff: Time Difference Between Infection and Report of Cases

Description Usage Arguments Value Warning See Also

View source: R/healthcare_system.R

Description

This function returns a tibble, which summarises the distribution of the difference between a case being reported and a person being infected over the whole pandemic. It only uses the cases for which the actual time of infection is know.

Usage

1
2
3
4
5
6
7
calc_distribution_report_diff(
  ages = "all",
  regions = "Germany",
  from = "2020-01-01",
  to = Sys.Date(),
  cut = Inf
)

Arguments

ages

A vector of numbers specifying the desired age groups. The available age groups are "A00-A04","A05-A14","A15-A34","A35-A59","A60-A79" and "A80+". The numbers in ages are automatically assigned to the belonging age group and afterwards, the cases and deaths of of these age groups are added up.

regions

A vector that either consists of strings (either the names of German districts or the names of German states) or district ID's. If this vector has more than one entry, the tibble contains the data of these regions together.

from

A date that specifies the beginning of the time series

to

A date that specifies the end of the time series

cut

A integer that determines at which number the distribution is cut off, because some of the results are nonsensical

Value

A plot that displays the distribution of differences between infection and report date

Warning

When specifying region and agegroup, the data will not be accurate because there is no population data for the age groups in each district and it will be estimated by the age distribution of Germany. Therefore, it is recommended to specify only one or the other

See Also

Other time difference infection vs. report: plot_distribution_report_diff()


slausmeister/revolution documentation built on Dec. 23, 2021, 3:24 a.m.