get_prior_info: Find quantiles of p(DLT) and probabilites of toxicity

Description Usage Arguments Value

View source: R/get_prior_info.R

Description

Provided with a matrix of dose combinations and the prior, this function returns the quantiles of p(DLT), the probability that p(DLT) < 0.2, the probability that p(DLT) in (0.2,0.35); and the probability that p(DLT) > 0.35.

Usage

1
get_prior_info(dose, prior, n_sim = 1000, seed = 1987)

Arguments

dose

A vector: dose combination. Log-transformed doses: must match what's used in the JAGS model.

prior

A list of prior parameters

n_sim

The number of times to simulate from the prior

seed

Random number seed.

Value

A vector of length 8. The first 2 elements simply return the dose levels. The 3rd – 5th elements are the 0.1,0.5 and 0.9 quantiles of the distribution of p(DLT). The 6th – 8th elements are the probabilities of underdosing, target-dosing and overdosing, respectively.


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