run.sim: A Unified Platform for Comprehensive Evaluation of Phase I...

Description Usage Arguments Value Examples

View source: R/run.sim.R

Description

This is a description

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
run.sim(
  prob,
  nSim = 10,
  dose = 3^{     0:(length(prob) - 1) },
  ttl = 0.3,
  n = 60,
  m = 3,
  Max_FoldChange = 3,
  epsilon1 = 0.05,
  epsilon2 = 0.05,
  pod1 = 0.95,
  alpha = 1,
  beta = 1,
  cohort.size = c(3, 5, 8, 10),
  theta = 0.25,
  alpha1 = 1,
  beta1 = 4
)

Arguments

prob

Vector of true DLT rates

nSim

Number of studies to simulate

dose

Dose levels of recruited patients

ttl

Target toxicity level

n

The maximum sample size of the trial

m

The cohort size

Max_FoldChange

Maximum fold change

pod1

Eliminate the current dose and higher if the posterior probability of exceeding the target toxicity level exceeds this value

alpha

Prior shape1 parameter

beta

Prior shape2 parameter

cohort.size

Vector of cohort sizes

theta

Safety threshold for cohort-sequence design

alpha1

Prior shape1 parameter for cohort-sequence design

beta1

Prior shape2 parameter for cohort-sequence design

Value

run.sim( ) returns a list of simulation results

Examples

1
run.sim(prob=c(0.21, 0.30, 0.37, 0.43, 0.48, 0.52, 0.56, 0.61, 0.64, 0.66))

RemyMacDonald/UnifiedDesign documentation built on Dec. 18, 2021, 9:57 a.m.