Learn R Programming

epiparameter (version 0.4.1)

parameter_tbl: Table of epidemiological distributions

Description

This function subsets the epidemiological parameter library to return only the chosen epidemiological distribution. The results are returned as a data frame containing the disease, epidemiological distribution, probability distribution, author of the study, and the year of publication.

Usage

parameter_tbl(
  multi_epiparameter,
  disease = "all",
  pathogen = "all",
  epi_name = "all"
)

Value

A <parameter_tbl> object which is a subclass of <data.frame>.

Arguments

multi_epiparameter

Either an <epiparameter> object or a list of <epiparameter> objects.

disease

A character string with name of the infectious disease.

pathogen

A character string with the name of the causative agent of disease, or NA if not known.

epi_name

A character string with the name of the epidemiological parameter type.

Author

Joshua W. Lambert, Adam Kucharski

Examples

Run this code
epiparameter_list <- epiparameter_db(disease = "COVID-19")
parameter_tbl(multi_epiparameter = epiparameter_list)

# example filtering an existing list to incubation periods
epiparameter_list <- epiparameter_db(disease = "COVID-19")
parameter_tbl(
  multi_epiparameter = epiparameter_list,
  epi_name = "incubation period"
)

Run the code above in your browser using DataLab