Title: | Social Contact Matrices for 177 Countries |
---|---|
Description: | Data package for the supplementary data in Prem et al. (2017) <doi:10.1371/journal.pcbi.1005697> and Prem et al. <doi:10.1371/journal.pcbi.1009098>. Provides easy access to contact data for 177 countries, for use in epidemiological, demographic or social sciences research. |
Authors: | Hugo Gruson [cre, aut, cph] , Kiesha Prem [dtc] , Alex Richard Cook [dtc] , Mark Jit [dtc] |
Maintainer: | Hugo Gruson <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.1.0.9000 |
Built: | 2024-11-10 11:16:42 UTC |
Source: | https://github.com/bisaloo/contactdata |
Get a data.frame (in long format) of population by age for multiple countries
age_df_countries(countries)
age_df_countries(countries)
countries |
A character string or a vector of character containing the names of the countries for which to return contact data |
A data.frame (in long format) with 3 columns:
country
: the country name
age
: the age group
population
: the number of people in this age group
https://www.census.gov/programs-surveys/international-programs/about/idb.html
age_df_countries(c("Austria", "Belgium"))
age_df_countries(c("Austria", "Belgium"))
Get a data.frame (in long format) of contact data for multiple countries
contact_df_countries(countries, ...)
contact_df_countries(countries, ...)
countries |
A character string or a vector of character containing the names of the countries for which to return contact data |
... |
Arguments passed to |
A data.frame (in long format) with 4 columns:
country
: the country name
age_from
: the age group of individual
age_to
: the age group of contact
contact
: the intensity of contact
Kiesha Prem, Alex R. Cook, Mark Jit, Projecting social contact matrices in 152 countries using contact surveys and demographic data, PLoS Comp. Biol. (2017), 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), doi:10.1371/journal.pcbi.1009098.
contact_df_countries(c("Austria", "Belgium"), location = "all")
contact_df_countries(c("Austria", "Belgium"), location = "all")
Get contact data matrix for a specific country
contact_matrix( country, location = c("all", "home", "school", "work", "other"), geographic_setting = c("all", "rural", "urban"), data_source = c("2020", "2017") )
contact_matrix( country, location = c("all", "home", "school", "work", "other"), geographic_setting = c("all", "rural", "urban"), data_source = c("2020", "2017") )
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" |
A square (16 by 16) matrix containing the contact data between the different age classes for a given country.
Kiesha Prem, Alex R. Cook, Mark Jit, Projecting social contact matrices in 152 countries using contact surveys and demographic data, PLoS Comp. Biol. (2017), 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), doi:10.1371/journal.pcbi.1009098.
contact_matrix("France", location = "all") contact_matrix("Belgium", location = "school")
contact_matrix("France", location = "all") contact_matrix("Belgium", location = "school")
Get the list of countries included in the dataset
list_countries( geographic_setting = c("all", "rural", "urban"), data_source = c("2020", "2017") )
list_countries( geographic_setting = c("all", "rural", "urban"), data_source = c("2020", "2017") )
geographic_setting |
Character. One of "all" (default), "rural", "urban" |
data_source |
Character. Either "202O" (default) or "2017" |
A character vector with the name of all countries included in the dataset
This package uses the nomenclature from the countrycode package. If your names differ from the names used here, you should use countrycode as well to update them.
Kiesha Prem, Alex R. Cook, Mark Jit, Projecting social contact matrices in 152 countries using contact surveys and demographic data, PLoS Comp. Biol. (2017), 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), doi:10.1371/journal.pcbi.1009098.
list_countries()
list_countries()