Description Usage Arguments Value Author(s) Examples
View source: R/operatingChar.R
Evaluates Operating Characteristics for Adaptive Group-Sequential Design with Population Enrichment in Phase 3 Randomized Controlled Trials with Co-primary Endpoints
1 |
alpha |
Type 1 error rate |
information.fraction |
Information fraction |
th1 |
theta1 |
th2 |
theta2 |
f1 |
Group 1 proportion |
Stage1.OC |
Stage 1 operating charactistics |
Stage2.OC |
Stage 2 operating charactistics |
Overall.OC |
Overall operating charactistics |
Jaejoon Song, Arup K Sinha
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | library(agseDesign)
set.seed(123)
# Evaluating operating characteristics for theta = (0,0,0,0) scenario
d_0_0_0_0 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(0,0),
th2=c(0,0))
d_0_0_0_0
## Not run:
# Evaluating operating characteristics for theta = (0,0,1,0) scenario
d_0_0_1_0 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(0,0),
th2=c(1,0))
d_0_0_1_0
# Evaluating operating characteristics for theta = (0,0,0,1) scenario
d_0_0_0_1 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(0,0),
th2=c(0,1))
d_0_0_0_1
# Evaluating operating characteristics for theta = (1,0,0,0) scenario
d_1_0_0_0 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(1,0),
th2=c(0,0))
d_1_0_0_0
# Evaluating operating characteristics for theta = (0,1,0,0) scenario
d_0_1_0_0 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(0,1),
th2=c(0,0))
d_0_1_0_0
# Evaluating operating characteristics for theta = (1,1,0,0) scenario
d_1_1_0_0 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(1,1),
th2=c(0,0))
d_1_1_0_0
# Evaluating operating characteristics for theta = (1,1,1,0) scenario
d_1_1_1_0 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(1,1),
th2=c(1,0))
d_1_1_1_0
# Evaluating operating characteristics for theta = (1,1,0,1) scenario
d_1_1_0_1 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(1,1),
th2=c(0,1))
d_1_1_0_1
# Evaluating operating characteristics for theta = (1,0,1,0) scenario
d_1_0_1_0 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(1,0),
th2=c(1,0))
d_1_0_1_0
# Evaluating operating characteristics for theta = (1,1,1,1) scenario
d_1_1_1_1 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(1,1),
th2=c(1,1))
d_1_1_1_1
# Evaluating operating characteristics for theta = (2,2,0,0) scenario
d_2_2_0_0 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(2,2),
th2=c(0,0))
d_2_2_0_0
# Evaluating operating characteristics for theta = (2,2,1,0) scenario
d_2_2_0_1 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(2,2),
th2=c(0,1))
d_2_2_0_1
# Evaluating operating characteristics for theta = (2,2,1,0) scenario
d_2_2_1_0 <- operatingChar(alpha=0.025,
information.fraction=0.5,
f1=0.75,
th1=c(2,2),
th2=c(1,0))
d_2_2_1_0
options(scipen=999)
manuscriptTable2 <- data.frame(rbind(
c(d_0_0_0_0$effect.size, round(d_0_0_0_0$Overall.OC,4)),
c(d_0_0_1_0$effect.size, round(d_0_0_1_0$Overall.OC,4)),
c(d_0_0_0_1$effect.size, round(d_0_0_0_1$Overall.OC,4)),
c(d_1_0_0_0$effect.size, round(d_1_0_0_0$Overall.OC,4)),
c(d_0_1_0_0$effect.size, round(d_0_1_0_0$Overall.OC,4)),
c(d_1_1_0_0$effect.size, round(d_1_1_0_0$Overall.OC,4)),
c(d_1_1_1_0$effect.size, round(d_1_1_1_0$Overall.OC,4)),
c(d_1_1_0_1$effect.size, round(d_1_1_0_1$Overall.OC,4)),
c(d_1_0_1_0$effect.size, round(d_1_0_1_0$Overall.OC,4)),
c(d_1_1_1_1$effect.size, round(d_1_1_1_1$Overall.OC,4)),
c(d_2_2_0_0$effect.size, round(d_2_2_0_0$Overall.OC,4)),
c(d_2_2_1_0$effect.size, round(d_2_2_1_0$Overall.OC,4)),
c(d_2_2_0_1$effect.size, round(d_2_2_0_1$Overall.OC,4))))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.