This function simulates secondary events based on a given delay
distribution. The input dataset should have the primary event times in a
column named ptime
.
Arguments
- data
A data frame with the primary event times.
- dist
The delay distribution to be used. Defaults to
rlnorm()
.- ...
Arguments to be passed to the delay distribution function.
Value
A data.frame
that augments data
with two new columns: delay
(secondary event latency) and stime
(the time of the secondary event).
See also
Other simulate:
simulate_exponential_cases()
,
simulate_gillespie()
,
simulate_uniform_cases()