Learn R Programming

randomizeR (version 3.0.1)

GSD_POC: Simulate Group Sequential Design according to Pocock

Description

Calculates the mean type-I-error and go-no-go value for each stage of a group sequential design study according to Pocock's design.

Usage

GSD_POC(n, norep, K, RP, approach)

Value

A Dataframe with the mean type-I-error and go-no-go values for each stage of a group sequential design study according to Pocock's design/

Arguments

n

total sample size

norep

number of simulations to be conducted

K

number of stages. (Currently available: 2,3 and 4)

RP

the randomization procedure used.(Currently available: 'RAR', 'PBD2', 'BSD' - BSD(3),BSD(5) and BSD(10), 'EBC' - EBC(0.5), EBC(2/3) and EBC(0.8), 'CHEN' - CHEN(2/3,3), CHEN(2/3,5) and CHEN(2/3,10) )

approach

the approach used, where 1 corresponds to allocating all patients at the begining of the trial and 2 corresponds to allocating patients for each stage separately (Only needed for 'RAR', 'BSD' and 'CHEN')

Examples

Run this code
# Simulate a GSD according to Pocock's design with 30 patients, 10 simulation runs,
# 2 Stages using Random Allocation Rule as a randomization procedure and applying it to
# all patients at the beginning
GSD_POC(30,10,2,'RAR',1)

Run the code above in your browser using DataLab