| simulate,DesignCombo-method | R Documentation |
## S4 method for signature 'DesignCombo'
simulate(
object,
nsim = 1L,
seed = NULL,
truth,
args = NULL,
firstSeparate = FALSE,
mcmcOptions = McmcOptions(),
parallel = FALSE,
nCores = min(parallel::detectCores(), 5),
derive = list(),
...
)
object |
the |
nsim |
( |
seed |
see |
truth |
( |
args |
( |
firstSeparate |
( |
mcmcOptions |
( |
parallel |
( |
nCores |
( |
derive |
( |
... |
not used. |
an object of class ComboSimulations
Backfill cohorts are not yet implemented for DesignCombo simulations
and therefore lead to an error if used.
# nolint start
design_combo <- .DefaultDesignCombo()
true_tox_combo <- function(dose) {
plogis(-6 + 0.08 * dose[1] + 0.06 * dose[2] + 0.001 * dose[1] * dose[2])
}
options <- McmcOptions(
burnin = 50,
step = 1,
samples = 50,
rng_kind = "Mersenne-Twister",
rng_seed = 1
)
my_sims_combo <- simulate(
design_combo,
truth = true_tox_combo,
nsim = 1,
seed = 819,
mcmcOptions = options,
parallel = FALSE
)
# nolint end
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.