five

Code and data for 'Age-specific transmission dynamics of SARS-CoV-2 during the first two years of the pandemic'

收藏
DataCite Commons2025-07-03 更新2025-04-09 收录
下载链接:
https://dataverse.nl/citation?persistentId=doi:10.34894/J5UHNL
下载链接
链接失效反馈
官方服务:
资源简介:
This is the main code for the paper "Age-specific transmission dynamics of SARS-CoV-2 during the first two years of the pandemic" by Otilia Boldea, Amir Alipoor, Sen Pei, Jeffrey Shaman, and Ganna Rozhnova and its Supplement. <br><br> For questions related to the code, please email Otilia Boldea via the button "Contact Owner" top right or <a href="https://sites.google.com/site/otiliaboldea/home">https://sites.google.com/site/otiliaboldea/home</a> <br><br> The code is organized as follows: <br> Main Code/ Code with synthetic train data <br><br> <ul> <li> synthetic_mobility.m is the code to generate the synthetic mobility Msynth.mat; the true data, used to generate the results in the paper (output.m) is property of the national railway company National Spoorwegen, and is confidential <li>all the other data is publicly available or posted by us with permission from RIVM (Royal Institute for Public Health and Environment). <li>The folder Data contains all this data. The code for construction of the data along with plots and Tables can be found in Supplementary Materials Code/Code for S figures and Tables. <li>The description of how this data is constructed in available in the Supplementary Materials of the above paper </ul> </ul> To run the code with synthetic mobility data: <ul> <li>run inference.m, which uses the following functions: <li>SEIRHS.m - runs the stochastic version of the epidemiology model and an RK4 integration <li>transf.m - calculates the time-varying transition function of contacts multiplied by the susceptibility parameter <li>waning - calculates the waning of protection parameters in the second compartment set <li>initialize - initializes the parameters and the unobserved states <li>checkbound_ini - checks initial bounds on unobserved states (for example, S cannot be negative or larger than population) <li>checkbound - checks bounds on unobserved states - after updating (for example, S cannot be negative or larger than population) <li>Inflation.m - performs variance inflation of posterior updates to prevent the filter from collapsing due to lack of variance <li>liki.m - calculates the marginal posterior (quasi-)likelihood of the model based on the ensemble adjustment Kalman filter <li>the dataset movNSperc.mat (generated for Figures S11 and S19) contains percentage change in National train mobility compared to pre-pandemic levels and is used by the function synthetic_mobility.m (note that instead, Google mobility data could be used, but priors on parameters theta would likely need adjustment) <li>the dataset CBSprov.mat contains in column 4 the number of people living in province i and working in j, and is downloaded from CBS (Central Bureau Statistics) https://www.cbs.nl/nl-nl/cijfers/detail/83628NED#shortTableDescription <li>use year 2018, first published in 2020. </ul> <br> Main Code/ Output files <br><br> <ul> <li>contains output.m, main output in the paper <li>output_synth.m, output with synthetic train mobility data </ul> <br> Main Code/ Code for Main Text Figures <br><br> <ul> <li>contains code for reproducing Figures in the main text </ul>Supplementary Materials Code <br><br> <ul> <li> contains two folders. <li>The folder "Code for S Figures and Tables" contains code for constructing all the data used in the main code, as well as code for reproducing the Tables and Figures in the Supplementary Materials of the paper, labeled "S" <li>The folder "Code for A Figures and Tables" contains code for reproducing the figures and tables in the Supplementary Materials labeled "A" </ul> <br> Main Text Figures <br><br> <ul> <li>contains all the figures in the main text of the paper </ul> Supplementary Figures <ul> <li>contains all the figures in the Supplement </ul> Universe: Covering the entire Dutch population<br><br> Country / Nation: the Netherlands.
提供机构:
DataverseNL
创建时间:
2023-11-23
二维码
社区交流群
二维码
科研交流群
商业服务