This vignette outlines the design decisions that have been taken during the development of the contactmatrix R package, and provides some of the reasoning, and possible pros and cons of each decision.
This document is primarily intended to be read by those interested in understanding the code within the package and for potential package contributors.
Scope
This package aims to provide a standardised way of dealing with empirical and synthetic social contacts data, such as data from the socialmixr, contactdata, and conmat R packages. The main rationale is to allow downstream analysis and modelling packages to seamlessly switch from one package to the other without having to reformat the input data. This new contact matrix package will provide a shared, basic, contact matrix class. It is expected that some packages will use this class as an single element in a more complex list output (e.g., socialmixr also includes a citation element)
Classes
contactmatrix
-
- ✓ used in socialmixr
- ✓ used in contactdata
- ✓ used in conmat
-
- ✓ used in socialmixr
- ✓ used in contactdata
- ✗ transposed in conmat
-
- ✓ used in socialmixr
- ✓ used in conmat plots
- ✓ used in Epiverse-TRACE plots