Description Objects from the Class Slots Methods Author(s) Examples
These classes form the infrastructure that can be used to create different randomizers for clinical trials or other similar treatment allocation experiments.
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.
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.
signature(from = "Randomizer", to = "Minimization")
: ...
RG and VC
1 | showClass("Randomizer")
|
Virtual Class "Randomizer" [package "randPack"]
Slots:
Name: name treatmentTable stateVariables
Class: character integer environment
Known Subclasses: "Random", "PermutedBlock", "Urn", "Minimization", "EfronBiasedCoin"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.