Description Usage Arguments Slots See Also Examples
A class to encapsulate a clinical experiment with its
associated arms and factors. Objects can be created by calls of
the form new("ClinicalExperiment", ...), although the
ClinicalExperiment constructor function is recommended.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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | numberOfFactors(object)
## S4 method for signature 'ClinicalExperiment'
numberOfFactors(object)
factorNames(object)
## S4 method for signature 'ClinicalExperiment'
factorNames(object)
factorLevelNames(object)
## S4 method for signature 'ClinicalExperiment'
factorLevelNames(object)
numberOfTreatments(object)
## S4 method for signature 'ClinicalExperiment'
numberOfTreatments(object)
treatmentNames(object)
## S4 method for signature 'ClinicalExperiment'
treatmentNames(object)
## S4 method for signature 'ClinicalExperiment'
show(object)
|
object |
the ClinicalExperiment object |
number.of.factorsan integer specifying the number of factors, defaults to 2
factor.namesa character vector specifying the character names, defaults to F1 and F2
number.of.factor.levelsA vector specifying the number of levels of each factor, defaults to c(2,2)
factor.level.namesa list of character vectors specifying the factor level names, defaults to F1-1, F1-2, F2-1, F2-2, etc.
number.of.treatmentsthe number of treatments, defaults to 2
treatment.namesthe names of the treatments; defaults to c("Tr1", "Tr2")
ClinicalExperiment
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)
print(expt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.