randomizeR (version 1.4.2)

generateAllSequences: Complete set of randomization sequences

Description

Computes all randomization sequences for the given randomization procedure, and stores them in an object along with the parameters belonging to the randomization procedure.

Usage

getAllSeq(obj)

# S4 method for abcdPar getAllSeq(obj)

# S4 method for bbcdPar getAllSeq(obj)

# S4 method for ebcPar getAllSeq(obj)

# S4 method for bsdPar getAllSeq(obj)

# S4 method for chenPar getAllSeq(obj)

# S4 method for crPar getAllSeq(obj)

# S4 method for gbcdPar getAllSeq(obj)

# S4 method for hadaPar getAllSeq(obj)

# S4 method for mpPar getAllSeq(obj)

# S4 method for pbrPar getAllSeq(obj)

# S4 method for rarPar getAllSeq(obj)

# S4 method for tbdPar getAllSeq(obj)

# S4 method for udPar getAllSeq(obj)

Arguments

obj

object specifying the randomization procedure, see randPar or createParam.

Value

An object inheriting from '>randSeq, representing the set of randomization sequences for the given parameters. The output consists of the parameters used for the generation of the randomization sequences (see createParam) and the matrix M that stores the randomization sequences in its rows.

Details

getAllSeq is a generic function which dispatches different methods depending on the type of input. The set of sequences of a procedure is computed by enumerating all possible sequences and eliminating those that are not possible in the randomization procedure specified by obj. The parameters of the randomization procedure are saved along with the sequences to ensure reproducibility of the results.

See Also

createParam

Examples

Run this code
# NOT RUN {
# CR
myPar <- crPar(6)
getAllSeq(myPar)

# EBC
myPar <- ebcPar(6, 0.667)
getAllSeq(myPar)

# BSD
myPar <- bsdPar(6, 2)
getAllSeq(myPar)

# PBR
myPar <- pbrPar(c(4, 2))
getAllSeq(myPar)

# RAR
myPar <- rarPar(8)
getAllSeq(myPar)

# MP 
myPar <- mpPar(8, 2)
getAllSeq(myPar)

# HAD
myPar <- hadaPar(8)
getAllSeq(myPar)

# TBD
myPar <- tbdPar(8)
getAllSeq(myPar)

# GBCD
myPar <- gbcdPar(8, 2)
getAllSeq(myPar)

# ABCD
myPar <- abcdPar(8, 3)
getAllSeq(myPar)

# BBCD
myPar <- bbcdPar(8, 5)
getAllSeq(myPar)

# CHEN
myPar <- chenPar(8, 2, 0.667)
getAllSeq(myPar)

# }

Run the code above in your browser using DataLab