getD_distributeToOne: Get the conditional errors.

Description Usage Arguments References See Also Examples

View source: R/zzz.R

Description

Calculates the conditional error for all possible outcomes at the interim analysis (different number of responses) spending the "rest alpha" (difference between nominal alpha level and actual alpha level) only to increase the worst case (smallest conditional error value that is not equal to 0).

Usage

1
getD_distributeToOne(design, alpha)

Arguments

design

a dataframe containing all critical values for a Simon's two-stage design defined by the colums "r1", "n1", "r", "n" and "p0".

  • r1 = critical value for the first stage (more than r1 responses needed to proceed to the second stage).

  • n1 = number of patients enrolled in the first stage.

  • r = critical value for the whole trial (more than r responses needed at the end of the study to reject the null hypothesis).

  • n = number of patients enrolled in the whole trial.

  • p0 = response probability under the null hypothesis.

alpha

overall significance level the trial was planned for.

References

Englert S., Kieser M. (2012): Adaptive designs for single-arm phase II trials in oncology. Pharmaceutical Statistics 11,241-249.

See Also

getD_proportionally, getD_equally, getD_none

Examples

1
2
3
4
5
#Calculate a Simon's two-stage design
design <- getSolutions()$Solutions[3,] #minimax-design for the default values.

ce_toOne <- getD_distributeToOne(design, 0.05)
ce_toOne

OneArmPhaseTwoStudy documentation built on May 2, 2019, 9:28 a.m.