Learn R Programming

escalation (version 0.1.10)

cohorts_of_n: Sample times between patient arrivals using the exponential distribution.

Description

Sample times between patient arrivals using the exponential distribution.

Usage

cohorts_of_n(n = 3, mean_time_delta = 1)

Value

data.frame with column time_delta containing durations of time between patient arrivals.

Arguments

n

integer, sample arrival times for this many patients.

mean_time_delta

the average gap between patient arrival times. I.e. the reciprocal of the rate parameter in an Exponential distribution.

Examples

Run this code
cohorts_of_n()
cohorts_of_n(n = 10, mean_time_delta = 5)

Run the code above in your browser using DataLab