simulate_infection_sample_times: Simulates infection time for one exposure time series based...

Description Usage Arguments Value

Description

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.

Usage

1
2
simulate_infection_sample_times(exposure_ts, sample_times, hazard_risk, clr,
  lag = 0, debug = F)

Arguments

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)

Value

An infection time that matches a time given in sample_times


bryanmayer/multdr documentation built on May 13, 2019, 8:11 a.m.