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 package can be installed using

install.packages("socialmixr")

The current development version can be installed using the remotes package

remotes::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.6

License

GPL-3

Maintainer

Sebastian Funk

Last Published

January 10th, 2020

Functions in socialmixr (0.1.6)

wpp_age

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

List all countries contained in a survey
survey

Contact survey
pop_age

Change age groups in population data
limits_to_agegroups

Convert lower age limits to age groups.
reduce_agegroups

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

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

Check if the Zenodo repository is available
polymod

Social contact data from 8 European countries
check

Check contact survey data
check_zenodo

Check the status of the Zenodo repository
cite

Citation for a survey
contact_matrix

Generate a contact matrix from diary survey data
get_survey

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

Helper function to ensure Zenodo can be accessed
list_surveys

List all surveys available for download
clean

Clean contact survey data