Description Usage Arguments Details Value References Examples
The package plots N-T plane for decision 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.
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,...)
|
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 |
For more details, please refer to the vignette: browseVignettes(package = "IAbin")
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) |
Decision on Performing Interim Analysis for Comparative Clinical Trials
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.