Description Usage Arguments Author(s) Examples
This function allows you to set the slot named stateTable
of an
object of class PocockSimonRandomizer
to a value. This allows
you to start the randomization from arbitrary points in time.
1 | stateTable(x)<- value
|
x |
An object of class |
value |
a matrix of marginal counts of treatment allocations by the levels of each factor. It is important to ensure that the dimensions match with the experimental setup. At the moment, no checks are done, although that might change in the future. |
Balasubramanian Narasimhan
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | state.matrix <- matrix (c(9,8,8,9,8,4,5,
10,7,6,11,8,5,4,
9,7,7,9,8,3,5), nrow=3, byrow=TRUE)
rownames(state.matrix) <- c("Tr1", "Tr2", "Tr3")
colnames(state.matrix) <- c("F1:1", "F1:2", "F2:1", "F2:2", "F3:1", "F3:2", "F3:3")
expt <- ClinicalExperiment(number.of.factors = 3,
number.of.factor.levels = c(2, 2, 3),
number.of.treatments = 3)
y <- new("PocockSimonRandomizer", expt, as.integer(12345))
y@stateTable <- state.matrix
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.