diff --git a/examples/ocPredprobDist.R b/examples/ocPredprobDist.R index 4bc2715e..19982cf1 100644 --- a/examples/ocPredprobDist.R +++ b/examples/ocPredprobDist.R @@ -10,7 +10,7 @@ # - Interim look for Efficacy: # Pr( success at final ) > 80% or P(success at final) > phiU # - Interim look for Futility: -# Pr( failure at final ) < 20% or P(success at final) < phiL +# Pr( success at final ) < 20% or P(success at final) < phiL # We assume a prior of treatment arm parE = Beta(1,1), unless otherwise indicated. set.seed(20) @@ -41,10 +41,14 @@ result$oc # Desired difference to Standard of Care for Efficacy and Futility is 10% and -10% respectively. # Grey zone occurs due to different posterior probability distribution in the Efficacy and Futility rules. # Delta calculation is absolute case. The following are the Final Stop rules respectively : -# - Final look for Efficacy: Pr( response rate + deltaE > 25% ) > 60% or P(response rate + deltaE > p0) > tT -# - Final look for Futility: Pr( response rate + deltaF < 25% ) < 60% or P(response rate + deltaF > p0) < tT -# - Interim look for Efficacy: Pr( success at final ) > 80% or P(success at final) > phiU -# - Interim look for Futility: Pr( failure at final ) < 20% or P(success at final) < phiL +# - Final look for Efficacy: Pr( response rate + deltaE > 25% ) > 60% or +# P(response rate + deltaE > p0) > tT +# - Final look for Futility: Pr( response rate + deltaF < 25% ) < 60% or +# P(response rate + deltaF > p0) < tT +# - Interim look for Efficacy: Pr( success at final ) > 80% or +# P(success at final) > phiU +# - Interim look for Futility: Pr( failure at final ) < 20% or +# P(success at final) < phiL # We assume a prior of treatment arm parE = Beta(1,1), unless otherwise indicated. # set.seed(20) @@ -111,10 +115,10 @@ result$oc # True response rate or truep of the treatment group = 40% # Desired difference to Standard of Care for Efficacy and Futility = 50% # Delta calculation is relative case. The following are the Final Stop rules respectively : -# - Final look for Efficacy: P( P_S + (1-P_S)*deltaE > 25% ) > 60% or P( P_S + (1-P_S)*deltaE > p0) > tT -# - Final look for Futility: P( P_S + (1-P_S)*deltaEF < 25% ) < 60% or P( P_S + (1-P_S)*deltaF > p0) < tT -# - Interim look for Efficacy: P( success at final ) > 80% or P(success at final) > phiU -# - Interim look for Futility: P( failure at final ) < 20% or P(success at final) < phiL +# - Final look for Efficacy: P( P_S + (1-P_S)*deltaE > 25% ) > 60% +# - Final look for Futility: P( P_S + (1-P_S)*deltaEF < 25% ) < 60% +# - Interim look for Efficacy: P( success at final ) > 80% +# - Interim look for Futility: P( failure at final ) < 20% # We assume a prior of treatment arm parE = Beta(1,1), unless otherwise indicated. set.seed(20) diff --git a/examples/plotBounds.R b/examples/plotBounds.R index c28479ea..42c34b05 100644 --- a/examples/plotBounds.R +++ b/examples/plotBounds.R @@ -1,9 +1 @@ # examples -plotBounds(boundsPredprob( - nvec = c(10, 20, 30, 40), p = 0.20, tT = 0.80, - phiL = 0.10, phiU = 0.90, a = 1, b = 1 -), yt = "x") -plotBounds(boundsPredprob( - nvec = c(10, 20, 30, 40), p = 0.20, tT = 0.80, - phiL = 0.10, phiU = 0.90, a = 1, b = 1 -), yt = "p") diff --git a/man/ocPredprobDist.Rd b/man/ocPredprobDist.Rd index 3a570cfa..eeb7de5f 100644 --- a/man/ocPredprobDist.Rd +++ b/man/ocPredprobDist.Rd @@ -144,7 +144,7 @@ seen in the evaluation for the final futility look in \code{\link[=ocPredprobDis # - Interim look for Efficacy: # Pr( success at final ) > 80\% or P(success at final) > phiU # - Interim look for Futility: -# Pr( failure at final ) < 20\% or P(success at final) < phiL +# Pr( success at final ) < 20\% or P(success at final) < phiL # We assume a prior of treatment arm parE = Beta(1,1), unless otherwise indicated. set.seed(20) @@ -175,10 +175,14 @@ result$oc # Desired difference to Standard of Care for Efficacy and Futility is 10\% and -10\% respectively. # Grey zone occurs due to different posterior probability distribution in the Efficacy and Futility rules. # Delta calculation is absolute case. The following are the Final Stop rules respectively : -# - Final look for Efficacy: Pr( response rate + deltaE > 25\% ) > 60\% or P(response rate + deltaE > p0) > tT -# - Final look for Futility: Pr( response rate + deltaF < 25\% ) < 60\% or P(response rate + deltaF > p0) < tT -# - Interim look for Efficacy: Pr( success at final ) > 80\% or P(success at final) > phiU -# - Interim look for Futility: Pr( failure at final ) < 20\% or P(success at final) < phiL +# - Final look for Efficacy: Pr( response rate + deltaE > 25\% ) > 60\% or +# P(response rate + deltaE > p0) > tT +# - Final look for Futility: Pr( response rate + deltaF < 25\% ) < 60\% or +# P(response rate + deltaF > p0) < tT +# - Interim look for Efficacy: Pr( success at final ) > 80\% or +# P(success at final) > phiU +# - Interim look for Futility: Pr( failure at final ) < 20\% or +# P(success at final) < phiL # We assume a prior of treatment arm parE = Beta(1,1), unless otherwise indicated. # set.seed(20) @@ -245,10 +249,14 @@ result$oc # True response rate or truep of the treatment group = 40\% # Desired difference to Standard of Care for Efficacy and Futility = 50\% # Delta calculation is relative case. The following are the Final Stop rules respectively : -# - Final look for Efficacy: P( P_S + (1-P_S)*deltaE > 25\% ) > 60\% or P( P_S + (1-P_S)*deltaE > p0) > tT -# - Final look for Futility: P( P_S + (1-P_S)*deltaEF < 25\% ) < 60\% or P( P_S + (1-P_S)*deltaF > p0) < tT -# - Interim look for Efficacy: P( success at final ) > 80\% or P(success at final) > phiU -# - Interim look for Futility: P( failure at final ) < 20\% or P(success at final) < phiL +# - Final look for Efficacy: P( P_S + (1-P_S)*deltaE > 25\% ) > 60\% or +# P( P_S + (1-P_S)*deltaE > p0) > tT +# - Final look for Futility: P( P_S + (1-P_S)*deltaEF < 25\% ) < 60\% or +# P( P_S + (1-P_S)*deltaF > p0) < tT +# - Interim look for Efficacy: P( success at final ) > 80\% or +# P(success at final) > phiU +# - Interim look for Futility: P( failure at final ) < 20\% or +# P(success at final) < phiL # We assume a prior of treatment arm parE = Beta(1,1), unless otherwise indicated. set.seed(20) diff --git a/man/plotBounds.Rd b/man/plotBounds.Rd index 0ee0034d..1cd568db 100644 --- a/man/plotBounds.Rd +++ b/man/plotBounds.Rd @@ -56,13 +56,5 @@ and \code{\link{boundsPostprob}} } \examples{ # examples -plotBounds(boundsPredprob( - nvec = c(10, 20, 30, 40), p = 0.20, tT = 0.80, - phiL = 0.10, phiU = 0.90, a = 1, b = 1 -), yt = "x") -plotBounds(boundsPredprob( - nvec = c(10, 20, 30, 40), p = 0.20, tT = 0.80, - phiL = 0.10, phiU = 0.90, a = 1, b = 1 -), yt = "p") } \keyword{graphics}