-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
206 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,33 @@ | ||
# 40 pts trial with interim looks after each 10 pts., | ||
# final efficacy decision if more than 80% probability to be above 20% ORR, | ||
# final futility decision otherwise. | ||
# Interim efficacy decision if more than 90% predictive probability reach this, | ||
# interim futility decision if less than 10% predictive probability. | ||
# 40 pts trial with interim looks after each 10 patients. | ||
# Final efficacy decision if more than 80% probability to be above 20% ORR, | ||
# Final futility decision otherwise. | ||
# Interim efficacy decision if more than 90% predictive probability reach this or | ||
# Efficacy look Pr(Pr(P > p0 | x, Y, a, b) >= tT | x) >= phiU, | ||
# Interim futility decision if less than 10% predictive probability or | ||
# Futility look Pr(Pr(P > p0 | x, Y, a, b) >= tT | x) =< phiL | ||
# Uniform prior (i.e. beta(1, 1)) on the ORR: | ||
boundsPredprob( | ||
nvec = c(10, 20, 30, 40), p = 0.20, tT = 0.80, | ||
phiL = 0.10, phiU = 0.90, a = 1, b = 1 | ||
looks = c(10, 20, 30, 40), | ||
p0 = 0.20, | ||
tT = 0.80, | ||
phiL = 0.60, | ||
phiU = 0.90 | ||
) | ||
|
||
# 25 pts trial with interim looks at 7 and 15 pts. | ||
# Efficacy decision if more than 80% probability to be above 20% ORR, | ||
# Final futility decision otherwise. | ||
# Interim efficacy decision if more than 90% predictive probability reach this or | ||
# Efficacy look Pr(Pr(P > p0 | x, Y, a, b) >= tT | x) >= phiU, | ||
# Interim futility decision if less than 60% predictive probability or | ||
# Futility look Pr(Pr(P > p0 | x, Y, a, b) >= tT | x) =< phi | ||
# with mixed prior and weights: | ||
boundsPredprob( | ||
looks = c(7, 15, 25), | ||
p0 = 0.20, | ||
tT = 0.80, | ||
phiL = 0.60, | ||
phiU = 0.90, | ||
parE = cbind(c(1, 1), c(3, 10)), | ||
weights = c(0.2, 0.8) | ||
) | ||
# From this we see e.g. that at the first IA at 10 pts, we would stop for futility | ||
# if no patient responded, and for efficacy if 4 or more pts responded. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.