socialmixr
Derive social mixing matrices from survey data.
socialmixr breaks its one-shot contact_matrix() call into a composable pipeline.
◆Recent moves
- 3mo ago
Contact matrices become a composable pipeline
⚡ SPARKThe decomposition that started in 0.5.0 lands in full: seven composable verbs and a contact_matrix S3 class replace the single-call workflow, with the vignette and README rewritten around it. Terminal age-group labels switch to interval notation, matching the contactmatrix package.
View source ↗ - 6mo ago
Patch: load_survey() handles files without cont_id
A patch fixing load_survey() on contact files that lack a cont_id column, plus vignette pointers to the new contactsurveys package — a small marker of the download handoff underway.
View source ↗ - 6mo ago
Age-group assignment and population lookup split out
The groundwork for the 0.6.0 pipeline: assign_age_groups() and survey_country_population() become standalone steps, and user-specified age limits are honoured even where no participants fall in them. Several breaking output changes land here rather than being deferred.
View source ↗ - 1y ago
Faster survey loading and cached Zenodo lookups
Performance work — faster loading, cached Zenodo responses — plus a fix for NA matrices caused by gaps in population data. Bracket age-range notation becomes the default here, foreshadowing the 0.6.0 label change.
View source ↗ - 2y ago
contact_matrix() now takes survey objects only
contact_matrix() stops accepting DOIs, forcing the documented get_survey() then contact_matrix() route — an early instance of the same split-the-steps instinct that drives the later pipeline.
View source ↗ - 2y ago
Test fixes for machine-precision failures
A test-only release addressing floating-point precision differences across platforms. No user-visible change.
View source ↗