knitr::opts_chunk$set(echo = TRUE)
library(escalation) p1 <- get_three_plus_three(num_doses=1, allow_deescalate=TRUE) %>% get_dose_paths(cohort_sizes=rep(3, 2)) # D=1 trial enrolls at most 2 cohorts g1 <- graph_paths(p1) g1$width <- g1$height <- 250 g1
\newpage
p2 <- get_three_plus_three(num_doses=2, allow_deescalate=TRUE) %>% get_dose_paths(cohort_sizes=rep(3, 4)) # D=2 trial enrolls at most 4 cohorts graph_paths(p2)
\newpage
set.seed(2020) true_prob_tox <- c(0, 0, 0) # drive simulation to top dose with zero toxicity num_sims <- 1 sims <- get_three_plus_three(num_doses = 3, allow_deescalate = TRUE) %>% simulate_trials(num_sims = num_sims, true_prob_tox = true_prob_tox) sims[[1]][[1]][[1]]$fit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.