Randomizer-class: Class "Randomizer" and "RandomizerDesc" plus their...

Description Objects from the Class Slots Methods Author(s) Examples

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

1
showClass("Randomizer")

Example output

Virtual Class "Randomizer" [package "randPack"]

Slots:
                                                   
Name:            name treatmentTable stateVariables
Class:      character        integer    environment

Known Subclasses: "Random", "PermutedBlock", "Urn", "Minimization", "EfronBiasedCoin"

randPack documentation built on Nov. 8, 2020, 5:32 p.m.