sample_delay: Sample Onset Dates for Cases missing them

Description Usage Arguments Value

Description

Sample Onset Dates for Cases missing them

Usage

1
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


epiforecasts/EpiNow documentation built on Oct. 26, 2020, 2:38 p.m.