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.8

License

GPL-3

Maintainer

Sebastian Funk

Last Published

November 14th, 2020

Functions in socialmixr (0.1.8)

list_surveys

List all surveys available for download
contact_matrix

Generate a contact matrix from diary survey data
ensure_zenodo_available

Helper function to ensure Zenodo can be accessed
wpp_age

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

Social contact data from 8 European countries
check

Check contact survey data
check_zenodo

Check the status of the Zenodo repository
zenodo_available

Check if the Zenodo repository is available
pop_age

Change age groups in population data
cite

Citation for a survey
reduce_agegroups

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

Clean contact survey data
wpp_countries

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

Contact survey
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.
survey_countries

List all countries contained in a survey