Description Usage Arguments Value
This function takes a time series of exposures, exposure times, and infection detection times and returns a stochastic infection time that is linked to the given detection time. For more flexibility on returning exact infection times, use TBD.
| 1 2 | simulate_infection_sample_times(exposure_ts, sample_times, hazard_risk, clr,
  lag = 0, debug = F)
 | 
| exposure_ts | The data.frame time series of exposure (must include a day and count name) | 
| sample_times | The sampling days that infection would actually be observed | 
| hazard_risk | The per time hazard risk for the hazard function | 
| clr | The exponential pathogen clearance rate | 
| lag | The minimum amount of time between infection and when it could be detected (lag = 0 means infection is instantly detectable) | 
An infection time that matches a time given in sample_times
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.