detected_after_unobserved_prob: Probability a case is detected by a later time given it was...

View source: R/simulated-data.R

detected_after_unobserved_probR Documentation

Probability a case is detected by a later time given it was unobserved earlier

Description

This is the probability that a case originating on day day_onset is detected between days day_1 and day_2 given that it was unobserved on day day_1. This probability is calculated using the survival functions (which indicate the probability a case remains undetected by a certain time):

prob(detect) = \frac{S(day_1|day_onset) - S(day_2|day_onset)}{S(day_1|day_onset)}

Usage

detected_after_unobserved_prob(day_2, day_1, day_onset, reporting_parameters)

Arguments

day_2

day of last observation: day_2 > day_1 >= day_onset

day_1

day of first observation: day_1 >= day_onset

day_onset

day when case originates

reporting_parameters

named list of 'mean' and 'sd' of gamma distribution characterising the reporting delay distribution

Value

a probability


ben18785/incidenceinflation documentation built on Feb. 8, 2024, 2:36 a.m.