cohorts_of_n: Override escalation::cohorts_of_n to include latent toxicity tolerances
Description
The original function in package escalation recognizes that individual
trial participants arrive at distinct times. Building upon this acknowledgment
of individuality, this override adds an extra line of code to draw as well a
latent toxicity tolerance u_i for each individual participant.
Usage
cohorts_of_n(n = 3, mean_time_delta = 1)
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.
Value
data.frame with columns u_i and time_delta
containing respectively the uniformly-distributed latent toxicity tolerance
and arrival-time increment for each trial participant.
See Also
phase1_sim(), which this package also overrides with similarly
minute changes in order to incorporate u_i.