Calculates the Type I error for a randomization sequence in a group sequential design
Calculates the Type I error for a randomization sequence in a group sequential design
GSD_allocation_seq(sfu, K, seq, ui ="No")
Arguments
sfu: Group sequential design used (currently available: "Pocock" - Pocock, "OF" - O'Brien & Fleming, sfLDPocock - Lan & DeMets with Pocock like alpha spending function, sfLDOF - Lan & DeMets with O'Brien & Fleming like alpha spending function)
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 "yes".
Returns
A list of type I error probabilities for each stage.
Examples
#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, BGSD_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, Blibrary(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))