- design
The trial design. If no trial design is specified, a fixed sample size design is used.
In this case, Type I error rate alpha
, Type II error rate beta
, twoSidedPower
,
and sided
can be directly entered as argument where necessary.
- ...
Ensures that all arguments (starting from the "...") are to be named and
that a warning will be displayed if unknown arguments are passed.
- activeArms
The number of active treatment arms to be compared with control, default is 3
.
- effectMatrix
Matrix of effect sizes with activeArms
columns and number of rows
reflecting the different situations to consider.
- typeOfShape
The shape of the dose-response relationship over the treatment groups.
This can be either "linear"
, "sigmoidEmax"
, or "userDefined"
.
If "sigmoidEmax"
is selected, "gED50"
and "slope"
has to be entered
to specify the ED50 and the slope of the sigmoid Emax model.
For "linear"
and "sigmoidEmax"
, "muMaxVector"
specifies the range
of effect sizes for the treatment group with highest response.
If "userDefined"
is selected, "effectMatrix"
has to be entered.
- muMaxVector
Range of effect sizes for the treatment group with highest response
for "linear"
and "sigmoidEmax"
model, default is seq(0, 1, 0.2)
.
- gED50
If typeOfShape = "sigmoidEmax"
is selected, "gED50"
has to be entered
to specify the ED50 of the sigmoid Emax model.
- slope
If typeOfShape = "sigmoidEmax"
is selected, "slope"
can be entered
to specify the slope of the sigmoid Emax model, default is 1.
- intersectionTest
Defines the multiple test for the intersection
hypotheses in the closed system of hypotheses.
Five options are available in multi-arm designs: "Dunnett"
, "Bonferroni"
, "Simes"
,
"Sidak"
, and "Hierarchical"
, default is "Dunnett"
.
- stDev
The standard deviation under which the data is simulated,
default is 1
.
If meanRatio = TRUE
is specified, stDev
defines
the coefficient of variation sigma / mu2
.
- adaptations
A vector of length kMax - 1
indicating whether or not an adaptation takes
place at interim k, default is rep(TRUE, kMax - 1)
.
- typeOfSelection
The way the treatment arms or populations are selected at interim.
Five options are available: "best"
, "rbest"
, "epsilon"
, "all"
, and "userDefined"
,
default is "best"
.
For "rbest"
(select the rValue
best treatment arms/populations), the parameter rValue
has to be specified,
for "epsilon"
(select treatment arm/population not worse than epsilon compared to the best), the parameter
epsilonValue
has to be specified.
If "userDefined"
is selected, "selectArmsFunction"
or "selectPopulationsFunction"
has to be specified.
- effectMeasure
Criterion for treatment arm/population selection, either based on test statistic
("testStatistic"
) or effect estimate (difference for means and rates or ratio for survival) ("effectEstimate"
),
default is "effectEstimate"
.
- successCriterion
Defines when the study is stopped for efficacy at interim.
Two options are available: "all"
stops the trial
if the efficacy criterion is fulfilled for all selected treatment arms/populations,
"atLeastOne"
stops if at least one of the selected treatment arms/populations is shown to be
superior to control at interim, default is "all"
.
- epsilonValue
For typeOfSelection = "epsilon"
(select treatment arm / population not worse than
epsilon compared to the best), the parameter epsilonValue
has to be specified.
- rValue
For typeOfSelection = "rbest"
(select the rValue
best treatment arms / populations),
the parameter rValue
has to be specified.
- threshold
Selection criterion: treatment arm / population is selected only if effectMeasure
exceeds threshold
, default is -Inf
.
threshold
can also be a vector of length activeArms
referring to
a separate threshold condition over the treatment arms.
- plannedSubjects
plannedSubjects
is a vector of length kMax
(the number of stages of the design)
that determines the number of cumulated (overall) subjects when the interim stages are planned.
For two treatment arms, it is the number of subjects for both treatment arms.
For multi-arm designs, plannedSubjects
refers to the number of subjects per selected active arm.
- allocationRatioPlanned
The planned allocation ratio n1 / n2
for a two treatment groups
design, default is 1
. For multi-arm designs, it is the allocation ratio relating the active arm(s) to the control.
- minNumberOfSubjectsPerStage
When performing a data driven sample size recalculation,
the vector minNumberOfSubjectsPerStage
with length kMax determines the
minimum number of subjects per stage (i.e., not cumulated), the first element
is not taken into account. For two treatment arms, it is the number of subjects for both treatment arms.
For multi-arm designs minNumberOfSubjectsPerStage
refers
to the minimum number of subjects per selected active arm.
- maxNumberOfSubjectsPerStage
When performing a data driven sample size recalculation,
the vector maxNumberOfSubjectsPerStage
with length kMax determines the maximum number
of subjects per stage (i.e., not cumulated), the first element is not taken into account.
For two treatment arms, it is the number of subjects for both treatment arms.
For multi-arm designs maxNumberOfSubjectsPerStage
refers
to the maximum number of subjects per selected active arm.
- conditionalPower
If conditionalPower
together with minNumberOfSubjectsPerStage
and
maxNumberOfSubjectsPerStage
(or minNumberOfEventsPerStage
and maxNumberOfEventsPerStage
for survival designs) is specified, a sample size recalculation based on the specified conditional power is performed.
It is defined as the power for the subsequent stage given the current data. By default,
the conditional power will be calculated under the observed effect size. Optionally, you can also specify thetaH1
and
stDevH1
(for simulating means), pi1H1
and pi2H1
(for simulating rates), or thetaH1
(for simulating
hazard ratios) as parameters under which it is calculated and the sample size recalculation is performed.
- thetaH1
If specified, the value of the alternative under which
the conditional power or sample size recalculation calculation is performed.
- stDevH1
If specified, the value of the standard deviation under which
the conditional power or sample size recalculation calculation is performed,
default is the value of stDev
.
- maxNumberOfIterations
The number of simulation iterations, default is 1000
.
- seed
The seed to reproduce the simulation, default is a random seed.
- calcSubjectsFunction
Optionally, a function can be entered that defines the way of performing the sample size
recalculation. By default, sample size recalculation is performed with conditional power with specified
minNumberOfSubjectsPerStage
and maxNumberOfSubjectsPerStage
(see details and examples).
- selectArmsFunction
Optionally, a function can be entered that defines the way of how treatment arms
are selected. This function is allowed to depend on effectVector
with length activeArms
and stage
(see examples).
- showStatistics
If TRUE
, summary statistics of the simulated data
are displayed for the print
command, otherwise the output is suppressed, default
is FALSE
.