andrew-edwards/rightTruncation: Likelihood Calculations for Right-truncated Data as Used for Delay Distributions During COVID-19

For an epidemiological modelling study of the COVID-19 pandemic, we have dates on which new confirmed cases are reported in British Columbia, Canada; full details are given in our manuscript at https://www.medrxiv.org/content/10.1101/2020.04.17.20070086v1. For some of these case we also have dates of estimated onset of symptoms. These data are used to parameterise a Weibull distribution of the delay between symptom onset and a case being reported. The number of newly-symptomatic people each day is calculated in the epidemiological model (twelve coupled differential equations), and then, via the delay distribution and an observation model, compared to the number of reported cases at later dates. Since we are modelling the epidemic during the epidemic, our data are right-truncated. Say someone became symptomatic on 17 April 2020, got tested and then we get the positive result on 26 April. So there's a 9-day delay in symptom onset to reporting. But if someone else became symptomatic on 25 April and was also going to have a 9-day delay until reporting, if today is 28 April then we do not know that person is going to show up in our data (because they haven't gone for testing yet). That is right-truncation, and needs to be taken into account when fitting the Weibull distribution. The likelihood function to do this is derived in the manuscript; this package contains functions for implementation. Similar applications likely apply in ecological contexts.

Getting started

Package details

Maintainer
LicenseGPL (>= 2)
Version0.0.0.9000
URL https://github.com/andrew-edwards/rightTruncation
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("andrew-edwards/rightTruncation")
andrew-edwards/rightTruncation documentation built on Jan. 18, 2021, 7:43 p.m.