contact_matrix: Get contact data matrix for a specific country

View source: R/contact_matrix.R

contact_matrixR Documentation

Get contact data matrix for a specific country

Description

Get contact data matrix for a specific country

Usage

contact_matrix(
  country,
  location = c("all", "home", "school", "work", "other"),
  geographic_setting = c("all", "rural", "urban"),
  data_source = c("2020", "2017")
)

Arguments

country

Character. The name of the country for which you want contact data.

location

Character. One of "all" (default), "home", "school", "work" or "other".

geographic_setting

Character. One of "all" (default), "rural", "urban"

data_source

Character. Either "202O" (default) or "2017"

Value

A square (16 by 16) matrix containing the contact data between the different age classes for a given country.

References

Kiesha Prem, Alex R. Cook, Mark Jit, Projecting social contact matrices in 152 countries using contact surveys and demographic data, PLoS Comp. Biol. (2017), \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1371/journal.pcbi.1005697")}

Kiesha Prem, Kevin van Zandvoort, Petra Klepac, Rosalind M. Eggo, Nicholas G. Davies, CMMID COVID-19 Working Group, Alex R. Cook, Mark Jit, Projecting contact matrices in 177 geographical regions: An update and comparison with empirical data for the COVID-19 era, PLoS Comp. Biol. (2021), \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1371/journal.pcbi.1009098")}.

Examples

contact_matrix("France", location = "all")

contact_matrix("Belgium", location = "school")


Bisaloo/contactdata documentation built on Sept. 14, 2023, 4:57 p.m.