GSD_allocation | R Documentation |
Calculates the Type I error for different randomization sequences from a randomization procedure for a group sequential design
GSD_allocation(
n,
reps,
sfu,
K,
rp,
seed = 42,
ui = "No",
rb = 4,
mti = 3,
p = 2/3
)
n |
total sample size |
reps |
number of simulations to be conducted |
sfu |
Group sequential design used (currently available: |
K |
number of stages |
rp |
the randomization procedure used (currently available: |
seed |
Randomization seed |
ui |
for Lan & DeMets design. Update critical values after each stage according to allocation ratio observed if set to |
rb |
Block size for randomization procedure PBR. |
mti |
Maximum tolerated imbalance for randomization procedure BSD and MP. |
p |
Probability p in favor of the treatment with fewer allocations for EBC and CHEN. |
A list consisting of a vector of Type I errors for each randomization sequence generated from the randomization procedure and a S4 object of the class of the randomization procedure.
#Simulate a group sequential design according to O'Brien and Fleming's design with 24 patients,
#10 simulation runs,3 Stages using Random Allocation Rule as a randomization procedure.
GSD_allocation(n=24, reps=10, sfu="OF", K=3, rp="RAR")
#Simulate a group sequential design according to Lan and deMets design with a Pocock
#like alpha spending function with 18 patients, 10 simulation runs,
#3 Stages using Permuted Block Randomization with block size 4
#as a randomization procedure without updating the critical values after each stage.
library(gsDesign)
GSD_allocation(n=18, reps=10, sfu=sfLDPocock, K=3, rp="PBR", ui="no", rb=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.