Package 'rsurvstat'

Title: Download Timeseries from SurvStat (Robert Koch Institute)
Description: What the package does (one paragraph).
Authors: Robert Challen [aut, cre]
Maintainer: Robert Challen <[email protected]>
License: MIT + file LICENSE
Version: 0.0.4
Built: 2024-11-21 05:36:12 UTC
Source: https://github.com/bristol-vaccine-centre/rsurvstat

Help Index


SurvStat age group list

Description

  • single_year

  • children_coarse: from 0, 15, 20, 25, 30, 40, 50, 60, 70, 80 years

  • children_medium: from 0, 5, 10, 15, 20, 25, 30, 40, 50, 60, 70, 80 years

  • children_fine: from 0, 1, 2, 3, 4, 5, 10, 15, 20, 25, 30, 40, 50, 60, 70, 80 years

  • five_year: from 0, 1, 5, 10, 15, 20, … , 75, 80 years

  • zero_fifteen: from 0, 15+

  • zero_fifteen_sixty: from 0, 15, 60+

  • zero_one_4_20_40_60_80: from 0, 15, 60+

Usage

age_groups

Format

An object of class list of length 8.

References

https://survstat.rki.de/Content/Query/Create.aspx


SurvStat disease list

Description

SurvStat disease list

Usage

diseases

Format

An object of class list of length 108.

References

https://survstat.rki.de/Content/Query/Create.aspx


Extract age stratified case count of disease positive cases.

Description

N.b. its not possible to differentiate between missing data and zero counts in the source dataset.

Usage

get_timeseries(
  disease = diseases$`COVID-19`,
  measure = c("Count", "Incidence"),
  age_group = age_groups$single_year,
  quiet = FALSE,
  trim_zeros = c("leading", "both", "none")
)

Arguments

disease

the disease of interest, see rsurvstat::diseases

measure

one of "Count" or "Incidence"

age_group

the age_group of interest, see rsurvstat::age_groups

quiet

suppress loading messages

trim_zeros

get rid of zero counts. Either "both" (from start and end), "leading" (from start only - the default) or "none".

Value

a data frame with age_cat (ordered factor), age_start, age_end, elapsed_week (weeks since 2020-12-31), date (start of week date approximate) and one of count, incidence or population columns

Examples

get_timeseries(diseases$`COVID-19`, measure = "Count", age_group = age_groups$zero_fifteen_sixty)