cohorts_of_n: Override 'cohorts_of_n' to include latent toxicity tolerances

Description Usage Arguments Value See Also Examples

View source: R/enhance.R

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

1
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.

Examples

1
2
cohorts_of_n()
cohorts_of_n(n = 10, mean_time_delta = 5)

precautionary documentation built on Aug. 9, 2021, 9:14 a.m.