-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement IncrementsMaxToxProb (#861)
* Implement IncrementsMaxToxProb * [skip style] [skip vbump] Restyle files * Fix lintr errors * [skip style] [skip vbump] Restyle files * Use seq-alone correctly * Fix documentation * Update R/Rules-validity.R Co-authored-by: Daniel Sabanes Bove <[email protected]> * Update R/Rules-methods.R Co-authored-by: Daniel Sabanes Bove <[email protected]> * Update R/Rules-methods.R Co-authored-by: Daniel Sabanes Bove <[email protected]> * Refactor as per reviewer request. Additional unit tests. * [skip style] [skip vbump] Restyle files * Respond to reviewer comments. Fix pkgdown errors. * Fix documentation error * Fix R CMD Check warning * [skip style] [skip vbump] Restyle files * Update R/Rules-methods.R Co-authored-by: Daniel Sabanes Bove <[email protected]> --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Daniel Sabanes Bove <[email protected]>
- Loading branch information
1 parent
117334a
commit 4d3d3d4
Showing
28 changed files
with
1,787 additions
and
1,387 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
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# For use with binary models and data | ||
IncrementsMaxToxProb(prob = 0.35) | ||
|
||
# For use with ordinal models and data | ||
IncrementsMaxToxProb(prob = c("DLAE" = 0.2, "DLT" = 0.05)) |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
model <- LogisticLogNormalOrdinal( | ||
mean = c(0.25, 0.15, 0.5), | ||
cov = matrix(c(1.5, 0, 0, 0, 2, 0, 0, 0, 1), nrow = 3), | ||
ref_dose = 30 | ||
) | ||
|
||
emptyData <- DataOrdinal( | ||
doseGrid = c(1, 3, 9, 25, 50, 75, 100), | ||
yCategories = c("No tox" = 0L, "DLAE" = 1L, "CRS" = 2L) | ||
) | ||
|
||
# For warning regarding tox, see issue #748 https://github.com/openpharma/crmPack/issues/748 | ||
suppressWarnings({ | ||
samples <- mcmc(emptyData, model, .DefaultMcmcOptions()) | ||
}) | ||
toxIncrements <- IncrementsMaxToxProb(prob = c("DLAE" = 0.2, "CRS" = 0.05)) | ||
maxDose(toxIncrements, emptyData, model, samples) |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
IncrementsMaxToxProb(prob = c("DLAE" = 0.2, "CRS" = 0.05)) %>% tidy() |
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.