response_d1ph: Generating a response function based on the EWOC Proportional...

Description Usage Arguments Value Examples

View source: R/response.R

Description

Generating a response function based on the EWOC Proportional Hazards model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
response_d1ph(
  rho,
  mtd,
  theta,
  min_dose,
  max_dose,
  tau,
  distribution,
  shape = NULL
)

Arguments

rho

a numerical value indicating the true value of the parameter rho.

mtd

a numerical value indicating the true value of the parameter mtd.

theta

a numerical value defining the proportion of expected patients to experience a medically unacceptable, dose-limiting toxicity (DLT) if administered the MTD.

min_dose

a numerical value defining the lower bound of the support of the MTD.

max_dose

a numerical value defining the upper bound of the support of the MTD.

tau

a numerical value defining the period of time for a possible toxicity be observed.

distribution

a character establishing the distribution for the time of events.

shape

a numerical value indicating the true value of the parameter shape. It is only necessary if 'distribution' = "weibull".

Value

A function with dose as an input and a Binomial variable based on the parameters as an output.

Examples

1
2
3
4
response_sim <- response_d1ph(rho = 0.05, mtd = 40, theta = 0.33,
                             min_dose = 30, max_dose = 50,
                             tau = 10, distribution = "exponential")
response_sim(40)

ewoc documentation built on July 2, 2020, 3:22 a.m.