R/helpers.R
cohorts_of_n.Rd
Sample times between patient arrivals using the exponential distribution.
cohorts_of_n(n = 3, mean_time_delta = 1)
integer, sample arrival times for this many patients.
the average gap between patient arrival times. I.e. the reciprocal of the rate parameter in an Exponential distribution.
data.frame
with column time_delta containing durations of time
between patient arrivals.
cohorts_of_n()
#> time_delta
#> 1 0.6
#> 2 0.8
#> 3 0.2
cohorts_of_n(n = 10, mean_time_delta = 5)
#> time_delta
#> 1 0.9
#> 2 2.6
#> 3 3.4
#> 4 2.6
#> 5 6.8
#> 6 7.5
#> 7 11.9
#> 8 1.6
#> 9 1.0
#> 10 1.6