calc_traced_cases: Time Series of Traced Cases over Pandemic

Description Usage Arguments Value Warning See Also

View source: R/healthcare_system.R

Description

calc_traced_cases() is used to create a time series for the pandemic which shows the total and relative amount of cases traced by the German healthcare system. Traced cases here means that the infection date of an infection is known, as opposed to cases which had a positive test, but could not be traced back to the infection. The parameters work exactly like the ones in get_sti_series_for

Usage

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

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

Value

A tibble that contains total and relative amount of traced cases for each day since 2020

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 traced cases: plot_traced_cases_percentage(), plot_traced_cases_total()


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