Description Details Author(s) References Examples
The R package gen2stage
can generate single-stage and two-stage designs
for phase II single-arm efficacy or safety studies.
Package: | gen2stage |
Type: | Package |
Version: | 1.0 |
Date: | 2017-10-05 |
License: | GPL-2 |
Seongho Kim <biostatistician.kim@gmail.com>
Kim S and Wong WK. Phase II Two-Stage Single-Arm Clinical Trials for Testing Toxicity Levels. Commun Stat Appl Methods. 2019 Mar;26(2):163-173. https://www.ncbi.nlm.nih.gov/pubmed/31106162.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Single-stage safety design with pu (p0) = 0.33 vs. pa (p1) = 0.20
gen2single(0.33, 0.20, 0.05, 0.20)
# Single-stage efficacy design with pu (p0) = 0.67 vs. pa (p1) = 0.80
gen2single(0.67, 0.80, 0.05, 0.20)
# save and print
safety1 = gen2single(0.33, 0.20, 0.05, 0.20)
print(safety1)
# Two-stage safety design with pu (p0) = 0.33 vs. pa (p1) = 0.20
gen2simon(0.33, 0.20, 0.05, 0.20)
gen2simon(0.33, 0.20, 0.05, 0.10, nmax=150)
# Two-stage efficacy design with pu (p0) = 0.67 vs. pa (p1) = 0.80
gen2simon(0.67, 0.80, 0.05, 0.20)
gen2simon(0.67, 0.80, 0.05, 0.10, nmax=150)
# save, print and plot
safety2 = gen2simon(0.33, 0.20, 0.05, 0.20)
print(safety2)
plot(safety2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.