This function simulates a double-censored probability mass function (PMF).
The user may specify the alpha
, beta
, and upper bound of the event times.
Additionally, the user can specify the random number generator functions for
primary events, secondary events, and delays.
Arguments
- alpha
The shape parameter of the delay distribution.
- beta
The scale parameter of the delay distribution.
- max
The upper bound of event time.
- n
The total number of cases to simulate.
- rprimary
Random number generator function for primary events. Defaults to runif.
- rdelay
Random number generator function for delays. Defaults to
rlnorm()
.- delay_obs_process
Observation process for delays. Defaults to using the
floor
function to round both primary and secondary events to the nearest integer. Internally the delay is also bounded to be non-negative.
See also
Other simulate:
simulate_exponential_cases()
,
simulate_gillespie()
,
simulate_secondary()
,
simulate_uniform_cases()