This function simulates cases from an exponential distribution. The user may
specify the rate parameter r, the sample size, and the upper bound of the
survival time. If the rate parameter is 0, then this function defaults to the
uniform distribution.
Arguments
- r
The exponential growth rate parameter. Defaults to 0.2.
- sample_size
The number of cases to simulate. Defaults to 10000.
- seed
The random seed to be used in the simulation process. Defaults to
NULL, which leaves the random number generator as it is.- t
Upper bound of the survival time. Defaults to 30.
See also
Other simulate:
simulate_dates(),
simulate_gillespie(),
simulate_secondary(),
simulate_study(),
simulate_uniform_cases()
