Skip to content

matthewsilk/CoupledDynamicsNetworkPaper

Repository files navigation

CoupledDynamicsNetworkPaper

R code for the paper "Improving pandemic mitigation policies across communities through coupled dynamics of risk perception and infection".

R code to conduct the simulations and analyse the results of the paper:

  • FunctionsForHealthPaper.R is the functions used for the network modelling
  • ScriptforRunningSimulations_Revised.R runs the simulations
  • AnalysisScript_Revised.R analyses the results to produce the figures and tables in the manuscript and supplementary

older versions of these files are also included (prior to reviewer comments).

The folder params/ contains parameters sts and networks configuration:

  • Four csvs with the parameter sets used to run the simulations and in the analysis.
  • Nine .RDS in the subfolder params/networks2/, used to create the multiplex networks used in the simulations

You will first need to run the ScriptForHealthPaper2.R, which will population the folder output/, and once all simulations are done you will be able to run the script NetworksPaper1AnalysisCode_tidy.R

Rscript ScriptForHealthPaper2.R 
Rscript NetworksPaper1AnalysisCode_tidy.R

About

R code for the paper "Improving pandemic mitigation policies across communities through coupled dynamics of risk perception and infection"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages