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("epiforecasts/socialmixr")

Documentation

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

Copy Link

Version

Install

install.packages('socialmixr')

Monthly Downloads

603

Version

0.3.2

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Sebastian Funk

Last Published

April 18th, 2024

Functions in socialmixr (0.3.2)

contact_matrix

Generate a contact matrix from diary survey data
check

Check contact survey data
cite

Citation for a survey
clean

Clean contact survey data
download_survey

Download a survey from its Zenodo repository
list_surveys

List all surveys available for download
get_citation

Citation for a survey
is_doi

Checks if a character string is a DOI
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_countries

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

Load a survey from local files
matrix_plot

Draws an image plot of a contact matrix with a legend strip and the numeric values in the cells.
survey

Contact survey
wpp_age

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

Social contact data from 8 European countries
pop_age

Change age groups in population data
reduce_agegroups

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

List all countries contained in a survey