Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyyeoCH committed Oct 2, 2024
1 parent cefe1a9 commit aee5fb6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 34 deletions.
22 changes: 13 additions & 9 deletions examples/ocPredprobDist.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 0 additions & 8 deletions examples/plotBounds.R
Original file line number Diff line number Diff line change
@@ -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")
26 changes: 17 additions & 9 deletions man/ocPredprobDist.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions man/plotBounds.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aee5fb6

Please sign in to comment.