next_steps: Plot what posterior would look like after first cohort.

Description Usage Arguments Value

View source: R/next_steps.R

Description

Plot what posterior would look like after first cohort.

Usage

1
2
next_steps(doses, doses_1_so_far = 1, doses_2_so_far = 1, n_so_far = 3,
  n_dlt_so_far = 0, last_dose = c(1, 1), sim_result = NULL)

Arguments

doses

List of doses on original and log scales.

doses_1_so_far

The doses of drug 1 tried so far. Vector, on original scale.

doses_2_so_far

The doses of drug 2 tried so far (matching positions with doses_1_so_far). Vector, on original scale.

n_so_far

The number of patients on each dose combination so far (matching positions with doses_1_so_far). Vector.

n_dlt_so_far

The number of dlts on each dose combination so far (matching positions with doses_1_so_far). Vector.

last_dose

The most recent dose. Vector of length 2 on the original scale.

sim_result

Option to pass the result of a simulated trial, instead of other arguments.

Value

A list of length 2. The first element is the recommended next dose. The second element is a plot of posterior.


dominicmagirr/dosecombo documentation built on May 6, 2019, 4:32 p.m.