DOI: 10.6084/m9.figshare.24243181.v4
title: Data and code needed to recreate "Impact of Adjustment for Differential Testing by Age and Sex on Apparent Epidemiology of SARS-CoV-2 Infection in Ontario, Canada".

description: Data and Stata code for recreation of "Impact of Adjustment for Differential Testing by Age and Sex on Apparent Epidemiology of SARS-CoV-2 Infection in Ontario, Canada". For questions about analysis please contact me directly at david.fisman@gmail.com or david.fisman@utoronto.ca.Paper abstract: Surveillance of communicable diseases typically relies on case counts for estimates of risk, and counts can be strongly influenced by testing rates. In the Canadian province of Ontario, testing rates varied markedly by age, sex, geography and time over the course of the SARS-CoV-2 pandemic. We applied a standardization-based approach to test-adjustment to better understand pandemic dynamics from 2020 to 2022, and to better understand when test-adjustment is necessary for accurate estimation of risk. SARS-CoV-2 case counts by age, sex, public health unit and week were obtained from Ontario’s Case and Contact Management system (CCM), which includes all SARS-CoV-2 cases from March 2020 to August 2022. Complete data on testing volumes was obtained from the Ontario Laboratory Information System (OLIS). Case counts were adjusted for under-testing using a previously published standardization-based approach that estimates case numbers that would have been expected if the entire population was tested at the same rate as most-tested age and sex groups. Logistic regression was used to identify threshold testing rates beyond which test-adjustment was unnecessary. Testing rates varied markedly by age, sex, public health unit and pandemic wave. After adjustment for under-testing, overall case counts increased threefold. Adjusted epidemic curves suggested, in contrast to reported case counts, that the first two pandemic waves were equivalent in size, and that there were three distinct pandemic waves in 2022, due to the emergence of Omicron variants. Under-reporting was greatest in children and young males, and varied significantly across public health units, with variation explained partly by testing rates and prevalence of multigenerational households. Test adjustment resulted in little change in the epidemic curve during pandemic waves when testing rates were highest; we found that test-adjustment did not increase case counts once weekly per capita testing rates exceeded 6.3%. We conclude that standardization-based adjustment for differential testing by age and sex, and for dynamic changes in testing over time, results in a different picture of infection risk during the SARS-CoV-2 pandemic in Ontario; test-adjusted epidemic curves are concordant with observed patterns of mortality during the pandemic and have face validity. This methodology offers an alternative to sero-epidemiology for identification of true burden of infection when reinfection, sero-reversion, and non-specificity of serological assays make sero-epidemiology challenging.Update, December 15, 2023This data source is being updated in relation to work in progress showing the importance of test-adjusting for accurate estimation of the impacts of community masking mandates, as were introduced in Ontario in summer 2020 (see https://www.medrxiv.org/content/10.1101/2023.07.26.23293155v1). New files include a dataset that can be used to run updated analyses, Stata macros that create test-adjusted case counts by public health unit, age group, gender and week, and a spreadsheet that shows the estimated impact of mask mandates as compared to a counterfactual where they were not introduced.<br>