| GeneralSimulations-class | R Documentation |
GeneralSimulationsThis class captures trial simulations.
Here also the random generator state before starting the simulation is
saved, in order to be able to reproduce the outcome. For this just use
set.seed with the seed as argument before running
simulate,Design-method.
GeneralSimulations(data, doses, seed)
.DefaultGeneralSimulations()
data |
( |
doses |
( |
seed |
( |
data(list)
produced Data objects.
doses(numeric)
final dose recommendations.
seed(integer)
random generator state before starting the simulation.
Typically, end users will not use the .DefaultGeneralSimulations() function.
data <- list(
Data(x = 1:3, y = c(0, 1, 0), doseGrid = 1:3, ID = 1L:3L, cohort = 1L:3L),
Data(x = 4:6, y = c(0, 1, 0), doseGrid = 4:6, ID = 1L:3L, cohort = 1L:3L)
)
doses <- c(1, 2)
seed <- 123L
simulations <- GeneralSimulations(data, doses, seed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.