Skip to content

Commit

Permalink
Candidate v0.2-1
Browse files Browse the repository at this point in the history
  • Loading branch information
David Norris authored and David Norris committed Jan 12, 2021
1 parent 8b0d1ad commit 49265b1
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 23 deletions.
1 change: 0 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
^publicity
^inst/shiny-apps/.*/rsconnect
^vignettes/DTP-vs-Korn94.Rmd
^vignettes/Safety-Schematic-via-DTP.Rmd
^exec/prolog/.*
^exec/T[5-9].tab
11 changes: 7 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: precautionary
Type: Package
Title: Safety Diagnostics for Dose-Escalation Trial Designs
Version: 0.2-0
Date: 2020-12-14
Version: 0.2-1
Date: 2021-01-12
Authors@R: c(person("David C.", "Norris"
, role = c("aut", "cre", "cph")
, email = "[email protected]"
Expand All @@ -18,15 +18,16 @@ Depends:
magrittr,
escalation,
data.table,
R (>= 2.10)
R (>= 3.5.0)
Imports: methods, dplyr, rlang, stringr, knitr, kableExtra
Suggests:
rmarkdown,
bookdown,
tufte,
testthat,
lattice,
latticeExtra
latticeExtra,
dtpcrm
Description: Enhances various R packages that support the design and simulation
of phase 1 dose-escalation trials, adding diagnostics to examine
the safety characteristics of these designs in light of expected
Expand All @@ -43,8 +44,10 @@ Encoding: UTF-8
NeedsCompilation: no
RoxygenNote: 7.1.1
Collate:
'data.R'
'enhance.R'
'exact.R'
'precautionary-package.R'
'toxicity_generators.R'
'simulate_trials.R'
LazyData: true
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
YEAR: 2020
YEAR: 2020,2021
COPYRIGHT HOLDER: David C. Norris
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# precautionary 0.2-1

## Changes

* Added vignette 'Generalized dose-escalation safety schematics via DTP'
* Corrected a few typos

# precautionary 0.2

## Changes
Expand Down
29 changes: 29 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#' Complete dose transition pathways (DTP) table for the VIOLA trial.
#'
#' This data set caches a long computation (17 minutes on a 2.6GHz i7)
#' needed to build one package vignette.
#'
#' @format A data frame with 4^7 = 16384 rows and 15 columns, each row
#' representing one possible path the trial could take:
#' \describe{
#' \item{D0}{Initial dose level}
#' \item{T1}{Number of toxicities observed in first cohort}
#' \item{D1}{Dose recommendation after the first cohort}
#' \item{T2}{Number of toxicities observed in second cohort}
#' \item{D2}{Dose recommendation after the second cohort}
#' \item{T3}{Number of toxicities observed in third cohort}
#' \item{D3}{Dose recommendation after the third cohort}
#' \item{T4}{Number of toxicities observed in fourth cohort}
#' \item{D4}{Dose recommendation after the fourth cohort}
#' \item{T5}{Number of toxicities observed in fifth cohort}
#' \item{D5}{Dose recommendation after the fifth cohort}
#' \item{T6}{Number of toxicities observed in sixth cohort}
#' \item{D6}{Dose recommendation after the sixth cohort}
#' \item{T7}{Number of toxicities observed in seventh cohort}
#' \item{D7}{Dose recommendation after the seventh cohort}
#' }
#'
#' @seealso
#' Documentation of the \code{\link[dtpcrm]{calculate_dtps}} function.
#'
"viola_dtp"
Binary file added data/viola_dtp.rda
Binary file not shown.
21 changes: 6 additions & 15 deletions vignettes/Safety-Schematic-via-DTP.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,6 @@ prior.DLT <- c(0.03, 0.07, 0.12, 0.20, 0.30, 0.40, 0.52)
prior.var <- 0.75
```

### Practical considerations

```{r practicalities}
no_skip_esc <- TRUE
no_skip_deesc <- FALSE
global_coherent_esc <- TRUE
```

### Early stopping

```{r early-stopping}
Expand Down Expand Up @@ -159,17 +151,16 @@ viola_dtp <- calculate_dtps(next_dose = start.dose.level,
target = target.DLT,
stop_func = stop_func,
scale = sqrt(prior.var),
no_skip_esc = no_skip_esc,
no_skip_deesc = no_skip_deesc,
global_coherent_esc = global_coherent_esc
no_skip_esc = TRUE,
no_skip_deesc = FALSE,
global_coherent_esc = TRUE
)
saveRDS(viola_dtp, file="viola_dtp.rds")
proc.time() - t0 # NB: For C=7, this took 17 minutes to compute
save(viola_dtp, file="../data/viola_dtp.rda")
proc.time() - t0 # ~17 minutes on a 2.6GHz i7
```

```{r load-cached-dtp, echo=FALSE}
# Read cached viola_dtp from disk
viola_dtp <- readRDS("../viola_dtp.rds")
data(viola_dtp) # Read cached viola_dtp from disk
```

With each of (up to) 7 cohorts having 4 possible outcomes (0, 1, 2 or 3 toxicities), the DTP tabulation lists a total of $4^7 = 16384$ paths. These are not all distinct paths, however, since early stopping results in path degeneracy. For example, we can see that paths 1005--1008 all terminate at the 6th cohort, resulting in a $4\times$ degeneracy:
Expand Down
69 changes: 67 additions & 2 deletions vignettes/precautionary-package.bib
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,56 @@ @article{norris_one-size-fits-all_2018
file = {Norris - 2018 - One-size-fits-all dosing in oncology wastes money,.pdf:/Users/david/zotero/storage/TL5Y5R7C/Norris - 2018 - One-size-fits-all dosing in oncology wastes money,.pdf:application/pdf}
}

@article{zhou_accuracy_2018,
title = {Accuracy, {Safety}, and {Reliability} of {Novel} {Phase} {I} {Trial} {Designs}},
volume = {24},
issn = {1078-0432},
doi = {10.1158/1078-0432.CCR-18-0168},
abstract = {A number of novel model-based and model-assisted designs have been proposed to find the MTD in phase I clinical trials, but their differences and relative pros and cons are not clear to many practitioners. We review three model-based designs, including the continual reassessment method (CRM), dose escalation with overdose control (EWOC), and Bayesian logistic regression model (BLRM), and three model-assisted designs, including the modified toxicity probability interval (mTPI), Bayesian optimal interval (BOIN), and keyboard (equivalently mTPI-2) designs. We conduct numerical studies to assess their accuracy, safety, and reliability and the practical implications of various empirical rules used in some designs, such as skipping a dose and imposing overdose control. Our results show that the CRM outperforms EWOC and BLRM with higher accuracy of identifying the MTD. For the CRM, skipping a dose is not recommended, as it substantially increases the chance of overdosing patients while providing limited gain for identifying the MTD. EWOC and BLRM appear excessively conservative. They are safe but have relatively poor accuracy of finding the MTD. The BOIN and keyboard (equivalently mTPI-2) designs have similar operating characteristics, outperforming the mTPI, but the BOIN is more intuitive and transparent. The BOIN yields competitive performance comparable with the CRM but is simpler to implement and free of the issue of irrational dose assignment caused by model misspecification, thereby providing an attractive approach for designing phase I trials. Clin Cancer Res; 24(18); 4357-64. ©2018 AACR.},
language = {eng},
number = {18},
journal = {Clinical Cancer Research: An Official Journal of the American Association for Cancer Research},
author = {Zhou, Heng and Yuan, Ying and Nie, Lei},
month = sep,
year = {2018},
pmid = {29661774},
keywords = {READ\$\$\$},
pages = {4357--4364},
file = {Zhou et al. - 2018 - Accuracy, Safety, and Reliability of Novel Phase I.pdf:/Users/david/zotero/storage/5GRNKXFC/Zhou et al. - 2018 - Accuracy, Safety, and Reliability of Novel Phase I.pdf:application/pdf}
}

@article{zhou_accuracy_2018-1,
title = {Accuracy, {Safety}, and {Reliability} of {Novel} {Phase} {I} {Designs}-{Response}},
volume = {24},
issn = {1078-0432},
doi = {10.1158/1078-0432.CCR-18-2677},
language = {eng},
number = {21},
journal = {Clinical Cancer Research: An Official Journal of the American Association for Cancer Research},
author = {Zhou, Heng and Yuan, Ying and Nie, Lei},
month = nov,
year = {2018},
pmid = {30385656},
pages = {5483--5484},
file = {Zhou et al. - 2018 - Accuracy, Safety, and Reliability of Novel Phase I.pdf:/Users/david/zotero/storage/Z6WNSRSB/Zhou et al. - 2018 - Accuracy, Safety, and Reliability of Novel Phase I.pdf:application/pdf}
}

@article{wages_accuracy_2018,
title = {Accuracy, {Safety}, and {Reliability} of {Novel} {Phase} {I} {Designs}-{Letter}},
volume = {24},
issn = {1078-0432},
doi = {10.1158/1078-0432.CCR-18-2090},
language = {eng},
number = {21},
journal = {Clinical Cancer Research: An Official Journal of the American Association for Cancer Research},
author = {Wages, Nolan A. and Braun, Thomas M.},
month = nov,
year = {2018},
pmid = {30385655},
pages = {5482},
file = {Wages and Braun - 2018 - Accuracy, Safety, and Reliability of Novel Phase I.pdf:/Users/david/zotero/storage/JKP5IX7S/Wages and Braun - 2018 - Accuracy, Safety, and Reliability of Novel Phase I.pdf:application/pdf}
}

@article{craddock_combination_2019,
title = {Combination {Lenalidomide} and {Azacitidine}: {A} {Novel} {Salvage} {Therapy} in {Patients} {Who} {Relapse} {After} {Allogeneic} {Stem}-{Cell} {Transplantation} for {Acute} {Myeloid} {Leukemia}},
issn = {1527-7755},
Expand Down Expand Up @@ -274,6 +324,21 @@ @article{sabanes_bove_model-based_2019
file = {example.pdf:/Users/david/zotero/storage/CS33X84W/example.pdf:application/pdf;Sabanés Bové et al. - 2019 - Model-Based Dose Escalation Designs in R wi.pdf:/Users/david/zotero/storage/MDBUV6VC/Sabanés Bové et al. - 2019 - Model-Based Dose Escalation Designs in R wi.pdf:application/pdf}
}

@article{braun_simulationfree_2020,
title = {A simulation‐free approach to assessing the performance of the continual reassessment method},
issn = {0277-6715, 1097-0258},
url = {https://onlinelibrary.wiley.com/doi/10.1002/sim.8746},
doi = {10.1002/sim.8746},
language = {en},
urldate = {2020-09-23},
journal = {Statistics in Medicine},
author = {Braun, Thomas M.},
month = sep,
year = {2020},
pages = {sim.8746},
file = {Braun - 2020 - A simulation‐free approach to assessing the perfor.pdf:/Users/david/zotero/storage/N8KKHBKJ/Braun - 2020 - A simulation‐free approach to assessing the perfor.pdf:application/pdf}
}

@article{korn_comparison_1994,
title = {A comparison of two phase {I} trial designs},
volume = {13},
Expand Down Expand Up @@ -318,14 +383,14 @@ @techreport{fda_cder_good_2013
@article{norris_what_2020,
title = {What {Were} {They} {Thinking}? {Pharmacologic} priors implicit in a choice of 3+3 dose-escalation design},
shorttitle = {What {Were} {They} {Thinking}?},
url = {http://arxiv.org/abs/2012.05301},
url = {https://arxiv.org/abs/2012.05301},
abstract = {If explicit, formal consideration of clinical pharmacology at all informs the design and conduct of modern oncology dose-finding trials, the designs themselves hardly attest to this. Yet in conducting a trial, investigators affirm that they hold reasonable expectations of participant safety - expectations that necessarily depend on beliefs about how certain pharmacologic parameters are distributed in the study population. Thus, these beliefs are implicit in a trial's presumed conformance to a community standard of safety, and may therefore to some extent be reverse-engineered from trial designs. For one popular form of dose-escalation trial design, I demonstrate here how this may be done.},
urldate = {2020-12-25},
journal = {arXiv:2012.05301 [stat.ME]},
author = {Norris, David C.},
month = dec,
year = {2020},
note = {arXiv: 2012.05301},
keywords = {Quantitative Biology - Quantitative Methods, Statistics - Applications, Statistics - Methodology},
keywords = {Statistics - Methodology, Statistics - Applications, Quantitative Biology - Quantitative Methods},
file = {arXiv Fulltext PDF:/Users/david/zotero/storage/TTMKDVAD/Norris - 2020 - What Were They Thinking Pharmacologic priors impl.pdf:application/pdf;arXiv.org Snapshot:/Users/david/zotero/storage/36V5MGM3/2012.html:text/html}
}

0 comments on commit 49265b1

Please sign in to comment.