Description Objects from the Class Slots Methods Author(s) See Also Examples
A class to encapsulate a clinical experiment used in clinical trials
Objects can be created by calls of the form new("ClinicalExperiment", ...)
.
The arguments include the number of factors in the experiment, the
names of the factors, the number of levels of each factor, the number
of treatments and the treatment names. Many, if not all, of the
arguments are optional, in which case a two-treatment, two-factor
experiment with two levels of each factor is assumed.
number.of.factors
:Object of class "integer"
An
integer specifying the number of factors, defaults to 2
factor.names
:Object of class "character"
a
character vector specifying the character names, defaults to
F1
and F2
number.of.factor.levels
:Object of class
"integer"
A vector specifying the number of levels of each
factor, defaults to c(2,2)
factor.level.names
:Object of class "list"
a
list of character vectors specifying the factor level names, defaults to
1
, 2
, etc.
number.of.treatments
:Object of class "integer"
The number of treatments, defaults to 2
treatment.names
:Object of class "character"
The names of the treatments; defaults to c("Tr1", "Tr2")
No methods defined with class "ClinicalExperiment" in the signature for now. These will be added in future versions.
Balasubramanian Narasimhan
ClinicalExperiment
for a constructor function and
PocockSimonRandomizer
for an example of how this
class is used.
1 2 3 4 5 6 7 8 9 | showClass("ClinicalExperiment")
##
## Construct a Clinical Experiment with 3 factors, with levels 2, 2, 3
## respectively, and three treatments with default names for all.
##
expt <- ClinicalExperiment(number.of.factors = 3,
number.of.factor.levels = c(2, 2, 3),
number.of.treatments = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.