TY - JOUR T1 - Responsible modelling: Unit testing for infectious disease epidemiology JF - medRxiv DO - 10.1101/2020.08.14.20175216 SP - 2020.08.14.20175216 AU - Tim CD Lucas AU - Timothy M Pollington AU - Emma L Davis AU - T Déirdre Hollingsworth Y1 - 2020/01/01 UR - http://medrxiv.org/content/early/2020/08/16/2020.08.14.20175216.abstract N2 - Infectious disease epidemiology is increasingly reliant on large-scale computation and inference. Models have guided health policy for epidemics including COVID-19 and Ebola and endemic diseases such as malaria and tuberculosis. Yet a single coding bug may bias results, leading to incorrect conclusions and wrong actions that could cause avoidable harm. We are ethically obliged to ensure our code is as free of error as possible. Unit testing is a coding method to avoid such bugs, but unit testing is rarely used in epidemiology. We demonstrate through simple examples how unit testing can handle the particular quirks of infectious disease models.Competing Interest StatementThe authors have declared no competing interest.Funding StatementGates FoundationAuthor DeclarationsI confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.YesThe details of the IRB/oversight body that provided approval or exemption for the research described are given below:NoneAll necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived.YesI understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).YesI have followed all appropriate research reporting guidelines and uploaded the relevant EQUATOR Network research reporting checklist(s) and other pertinent material as supplementary files, if applicable.YesAll data available ER -