GSD_allocation_seq | R Documentation |
Calculates the Type I error for a randomization sequence in a group sequential design
GSD_allocation_seq(sfu, K, seq, ui = "No")
sfu |
Group sequential design used (currently available: |
K |
number of stages |
seq |
List of consecutive treatment allocations. 1 for first treatment A, 2 for second treatment. |
ui |
Only for Lan & DeMets design. Update critical values after each stage according to allocation ratio observed if set to |
A list of type I error probabilities for each stage.
#Simulate a group sequential design according to Pocock's design with 24 patients
#and the following consecutive treatment allocation:
#A, A, B, A, A, B, A, B, A, B, A, B, A, B, A, B, B, B, A, B, B, A, B, B
GSD_allocation_seq(sfu ="Pocock", K=3, seq = c(1,1,0,1,1,0,1,1,1,0,1,0,1,0,1,0,0,0,1,0,0,1,0,0))
#Simulate a group sequential design according to Lan and DeMets with O'Brien & Fleming
#like alpha spending with 24 patients and the following consecutive treatment allocation:
#A, A, B, A, A, B, A, B, A, B, A, B, A, B, A, B, B, B, A, B, B, A, B, B
library(gsDesign)
GSD_allocation_seq(sfu =sfLDOF, K=3, seq = c(1,1,0,1,1,0,1,1,1,0,1,0,1,0,1,0,0,0,1,0,0,1,0,0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.