plotNT.fut: Plotting N-T Plane for Decision of Performing an Interim...

Description Usage Arguments Details Value References Examples

Description

The package plots N-T plane for finding the appropriate timing for conducting an interim analysis in a randomized control trial. The functions for interim analysis expecting early stopping for superiority and futility are prepared respectively.

Usage

1
2
3
4
5
6
plotNT.fut(p0, M, q, alpha1, cp1, 
            xlab = "N: Number of patients at interim analysis", 
            ylab = "T: Number of responders at interim analysis", 
            col = "blue",
            main = "N-T plot",
            lty = 2,...)

Arguments

p0

Expected response rate for the control arm: scalar or vector. the value between 0 to 1.

M

Total number of patients: expected number of patients until last time.

q

Allocation ratio of the treatment arm: the value between 0 to 1.

alpha1

Critical alpha at an interim analysis.

cp1

Critical conditional power at an interim analysis.

xlab

Label name for x-axis in N-T plot.

ylab

Label name for y-axis in N-T plot.

col

Line color. Default is "blue". For multiple p0, set the same length of color with p0.

main

Main title in N-T plot.

lty

Line type. The default is 2 for early stopping for futility.

...

Other graphics parameters

Details

For more details, please refer to the vignette: browseVignettes(package = "IAbin")

Value

A matrix or list with variable names N, T, Z_score and CP.

Draw N-T plot for early stopping for futility

x axis:

N (Total number of patients at interim analysis)

y axis:

T (Total number of responders at interim analysis)

References

Decision of Performing Interim Analysis for Comparative Clinical Trials

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#--- Settings ---#
#--- With an expected parameter for control therapy ---#
p0 = 0.5
M = 135
q = 2/3
alpha1 = 0.01
cp1 = 0.2

#--- N-T plot for early stopping for superiority and futility ---#
NT_f = plotNT.fut(p0, M, q, alpha1, cp1)
print(NT_f)

#--- Settings ---#
#--- With several expected parameters for control therapy ---#
p0 = c(0.2, 0.4, 0.6)
M = 135
q = 2/3
alpha1 = 0.01
col = c(1, 2, 3)
cp1 = 0.2

#--- N-T plot for early stopping for superiority and futility ---#
NT_f3 = plotNT.fut(p0, M, q, alpha1, cp1, col=col)
print(NT_f3)

KyongsunPak/IAbin documentation built on May 7, 2019, 12:32 p.m.