Learn R Programming

⚠️There's a newer version (0.4.0) of this package.Take me there.

Social mixing matrices for infectious disease modelling in R

socialmixr is an R package to derive social mixing matrices from survey data.

Installation

The current development version can be installed using the devtools package

devtools::install_github("sbfnk/socialmixr")

Documentation

For information on how to use the socialmixr package, see the vignette.

Copy Link

Version

Install

install.packages('socialmixr')

Monthly Downloads

603

Version

0.1.4

License

GPL-3

Maintainer

Sebastian Funk

Last Published

July 24th, 2019

Functions in socialmixr (0.1.4)

wpp_countries

List all countries and regions for which socialmixr has population data
reduce_agegroups

Reduce the number of age groups given a broader set of limits
pop_age

Change age groups in population data
survey

Contact survey
survey_countries

List all countries contained in a survey
polymod

Social contact data from 8 European countries
list_surveys

List all surveys available for download
get_survey

Get a survey, either from its Zenodo repository, a set of files, or a survey variable
limits_to_agegroups

Convert lower age limits to age groups.
wpp_age

Get age-specific population data according to the World Population Prospects 2015 edition
clean

Clean contact survey data
check

Check contact survey data
contact_matrix

Generate a contact matrix from diary survey data
cite

Citation for a survey