Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cohorts_of_n

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

Examples

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

precautionary

Safety Diagnostics for Dose-Escalation Trial Designs

v0.2-1
MIT + file LICENSE
Authors
David C. Norris [aut, cre, cph] (<https://orcid.org/0000-0001-9593-6343>), Markus Triska [ctb]
Initial release
2021-01-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.