Sample Onset Dates for Cases missing them

sample_delay(linelist = NULL, delay_fn = NULL, earliest_allowed_onset = NULL)

Arguments

linelist

Dataframe with two variables: date_report and date_onset. As generated by generate_pseudo_linelist.

delay_fn

A sampling funtion that takes a single numeric argument and returns a vector of numeric samples this long.

earliest_allowed_onset

A character string in the form of a date ("2020-01-01") indiciating the earliest allowed onset.

Value

Dataframe with no missing data and two variables: date_report and date_onset