Description Objects from the Class Slots Methods Description Note Author(s) See Also Examples
A class that defines the parameters for a clinical trial.
Objects can be created by calls of the form new("ClinicalExperiment", ...)
.
name
:A string naming the experiment.
factors
:A named list, the names are the names of the factors that will be used for randomization. The elements of the list are the names of the factor levels.
treatments
:A named integer vector indicating the relative frequency of treatment assignments that are desired. The names are the treatment names.
strataFun
:A function that can be applied to instances
of PatientData
to obtain the strata that the patient is to
be entered on.
randomization
:A list of the randomizers to be used. There is one for each strata.
patientIDs
:An instance of the PatientID
class
that is used to assign patient IDs to the individuals as they are
randomized into the trial.
signature(object = "ClinicalExperiment")
: a print
method.
signature(object = "ClinicalExperiment", value="list")
: binds a list of lists of randomizer descriptions to a clinical experiment
instance
Basically the ClinicalExperiment class should contain the static information that describes a clinical trial and in particular how patients will be randomized to treatments in that trial.
There is a name for the trial, then a list of the factors that can be used for randomization. We have yet to decide on how to handle continuous variables (these can be used in some randomization schemes). We also have not yet included strata.
Most of the accessors are simple functions, not methods.
Similar to the classes defined by N. Balasubraminian.
R. Gentleman
treatmentNames
, numberOfTreatments
,
factorNames
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.