sim_trial: Simulates a single trial

View source: R/simulate.R

sim_trialR Documentation

Simulates a single trial

Description

Simulates a single trial

Usage

sim_trial(
  design,
  tox_rates,
  cohortsize = 1,
  start = 1,
  parallel_recruit = TRUE,
  futime,
  accrual
)

Arguments

design

The dose-finding design which is employed. Possible options are "RollingSix" for Rolling Six.

tox_rates

Vector of true toxicity rates for each dose level in ascending order

cohortsize

Number of patients in a cohort

start

Dose level to be used at the beginning of the trial

parallel_recruit

Whether recruitment is parallel or sequential. If FALSE recruitment is sequential i.e. recruitment is suspended until all DLT results are known

futime

Follow-up time in days

accrual

Expected number of patients to be recruited in a year

Value

res_dlt Data frame with dose level and DLT result for each patient

res_time Data frame with important time points in days since trial start for each patient


labja/RollingSix documentation built on June 1, 2022, 12:58 a.m.