plotPhII: Plot function for Probability of conclusions of a PhII design

Description Usage Arguments References Examples

View source: R/PlotPhII.R

Description

Plots the probability of rejecting H0 ('Positive result') and rejecting Ha
('Negative result') for different true response binomial parameters
if the input is an object returned by fleming1stage, simon2stage, simon2stage, sargent1stage or sargent2stage, interactively choose
the design number

Usage

1
2
3
4
5
6
7
8
9
plotPhII(
  x,
  design_nr = 1,
  main = "PhII design",
  xlab = "True response probability",
  grid = "Y",
  ylab,
  ...
)

Arguments

x

an object returned by fleming1stage, simon2stage, simon2stage, sargent1stage or sargent2stage

design_nr

design_nr returned by fleming1stage, simon2stage, simon2stage, sargent1stage or sargent2stage
default is 1 (for sargent1stage, only one design is outputted)

main

title of the graph, passed on to plot

xlab

x-axis label of the graph, passed on to plot

grid

add grid to plot ("Y" or "N")

ylab

y-axis label of the graph, passed on to plot

...

other arguments passed on to plot

References

Sargent DJ, Chan V, Goldberg RM. A three-outcome design for phase II clinical
trials. Control Clin Trials. 2001;22(2):117-125. doi:10.1016/s0197-2456(00)00115-x
Simon R. Optimal two-Stage Designs for Phase II Clinical Trials.
Control Clin Trials. 1989;10:1-10

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
fleming1 <- fleming1stage(p0 = 0.45, pa = 0.7, alpha = 0.05, beta = 0.2)
plotPhII(fleming1)
simon2<- simon2stage(p0 = 0.1, pa = 0.3, alpha = 0.05, beta = 0.2,
                     eps = 0.005, N_min = 1, N_max = 50)
plotPhII(simon2)

sargent1 <- sargent1stage(p0 = 0.2, pa = 0.35, alpha = 0.1, beta = 0.1, eta = 0.8, pi = 0.8,
                         eps = 0.005, N_min = 35, N_max = 50)
plotPhII(sargent1)

sargent2 <- sargent2stage(p0 = 0.1, pa = 0.3, alpha = 0.05, beta = 0.1,
                          eta = 0.8, pi = 0.8,
                          eps = 0.005, N_min = 15, N_max = 30)
plotPhII(sargent2,design_nr=1)

IDDI-BE/PhIIdesign documentation built on June 5, 2021, 2:03 p.m.