Description Usage Arguments Value Author(s) See Also Examples
Generate and summarize an ensemble of simulated dose titration studies.
1 |
K |
Number of simulated studies to run |
... |
Parameters to be passed through to |
A data frame summarizing key outcomes of the simulated trials:
enrolling.dose |
Enrolling dose at conclusion of study |
max.dose |
Maximum allowed dose at conclusion of study |
effic.33pc |
Efficiency of titration over retained doses, relative to perfect 'MTDi' dosing |
effic.1sfa |
Efficiency of 1-size-fits-all dosing, relative to perfect 'MTDi' dosing |
David C. Norris
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (K = 10, ...)
{
pb <- txtProgressBar(max = K, style = 3)
df <- de.sim(...)
MTDi.ensemble <<- list(MTDi.last)
de.ensemble <<- list(de.last)
setTxtProgressBar(pb, 1)
for (k in 2:K) {
df <- rbind(df, de.sim(...))
MTDi.ensemble[[k]] <<- list(MTDi.last)
de.ensemble[[k]] <<- de.last
setTxtProgressBar(pb, k)
}
df
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.