sim_trials: Simulates multiple trials

View source: R/simulate.R

sim_trialsR Documentation

Simulates multiple trials

Description

Simulates multiple trials

Usage

sim_trials(
  design,
  tox_rates,
  cohortsize = 1,
  start = 1,
  parallel_recruit = TRUE,
  futime,
  accrual,
  nsim,
  seed = 1
)

Arguments

design

Thedose-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

nsim

Number of simulated trials

seed

Seed for simulation

Value

res Data frame with key numbers for each trial


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