Randomizer-class {randPack}R Documentation

Class "Randomizer" and "RandomizerDesc" plus their subclasses.

Description

These classes form the infrastructure that can be used to create different randomizers for clinical trials or other similar treatment allocation experiments.

Objects from the Class

Both "Randomizer and "RandomizerDesc" are virtual classes and no objects may be created from them. Their various subclasses, "ForcedAlloc", "Random", "PermutedBlock" and "Urn" can be instantiated.

Slots

For "RandomizerDesc":

treatments:

A named integer vector. The names correspond to treatment names, the integers are relative allocations.

type:

The name of the randomizer, this will be set internally.

For "Randomizer":

name:

The name of the randomizer.

treatmentTable:

A named integer vector. The names correspond to treatment names and the integer values to relative allocations.

stateVariables:

An environment that is used to hold any variables that need to retain state information.

Methods

coerce

signature(from = "Randomizer", to = "Minimization"): ...

Author(s)

RG and VC

Examples

showClass("Randomizer")

[Package randPack version 1.32.0 Index]