Description Usage Arguments Details Value Author(s) References See Also Examples
Simulates data from adaptive versions of Simon's optimal and minimax designs, propposed by Englert and Kieser (2012). Adaptation consists in recalculating the second stage sample size n2 in order to achieve a desired conditional power given the number of successes at first stage.
1 2 | SimulateSimonDsgnAdaptN(replicates, designParam, newp1 = NA,
condPwr = NA, restAlphaMet = 0, seed = NA, deleteOld = TRUE)
|
replicates |
Number of trials to be generated. |
designParam |
A dataframe containing Simon's optimal and minimax designs, as returned
by the function |
newp1 |
If |
condPwr |
The desired conditional power. The default is |
restAlphaMet |
The method for spending the "rest alpha" (difference between nominal alpha level and actual alpha level for the given design).
|
seed |
Initial value (any integer) of random-number seed. It is useful for creating
simulations that can be reproduced. The default is |
deleteOld |
If TRUE (default) the sub-directories |
The simulated trials are stored in the sub-directories /OptimalAdapt/SimulatedTrials
and /MinimaxAdapt/SimulatedTrials
for optimal and minimax designs, repectively, under the
current working directory. The sub-directories are automatically created. Individual trial
data are stored in a CSV file named trial#
, where # is the replicate number.
The function is not intended to return an R object, instead it creates files
(in CSV format) containing simulated trials data. See Details. It also saves
in the current working directory the designParam
argument (DesignParametersAdapt.csv).
Arsenio Nhacolo
Englert S., Kieser M. Adaptive designs for single-arm phase II trials in oncology. Pharm Stat, 2012, 11, 241-249.
CalculateSimonDsgn
, getN2
,
SimulateSimonDsgn
and AnalyzeSimonDsgnAdaptN
.
1 2 | d <- CalculateSimonDsgn(0.2, 0.4, 0.05, 0.1)
SimulateSimonDsgnAdaptN(100, d, seed = 1986)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.