This repository contains the functions and analysis used to reproduce the CoMix survey results. The data is not currently available but dummy data will be added so that the code can be seen and checked.
# install.packages("remotes")
remotes::install_github("jarvisc1/CoMix")
The inst/scripts
folder contains code to run the social mixing matrices analysis for CoMix using POLYMOD as a baseline for imputation and comparison and imputation.
Choose from the following:
inst/
folder to another repository.gitignore
preferences before pushing any code
or date to github (see the
gitignore documentation for details)Create panel and wave specific folders in data and outputs using the following
structure (refer to inst/scripts/000_run_all.R
)
inst/data/panel_[LETTER]/wave_[NUMBER]/data
inst/outputs/panel_[LETTER]/wave_[NUMBER]/contact_matrices
inst/outputs/panel_[LETTER]/wave_[NUMBER]/contact_matrices_online
inst/outputs/combined
clean_participants.rds
and clean_contacts.rds
from the CoMix survey)polymod_contacts.rds
,
polymod_participants.rds
, and polymod_contacts_part.rds
)inst/scripts/000_run_all.R
file. By default it will bootstrap 5000
samples, which can be changed in aaa_create_contact_matrices
Contact matrices
Summaries
Online versions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.