nTTP_summary: Generate the mean nTTP score and the probability of observing...

Description Usage Arguments Value Examples

Description

nTTP_summary generates the mean nTTP score and the probability of observing DLT for all doses and cycles

Usage

1
nTTP_summary(Tox.prob.M, nTTP.all, wm)

Arguments

Tox.prob.M

Toxicity probability matrix with 4 dimension: dose, cycle, type, grade. Tox.prob.M can be the output of the build-in matrix of function GenToxProb in package phase1RMD. See more details about how to generate toxicity probability matrices in the help document of GenToxProb.

nTTP.all

The output of nTTP.array

wm

(numerical matrix) Toxicity weighted matrix, with row be the type of the toxicity and column be the toxicity grade

Value

mnTTP.M

matrix of mean nTTP for all doses and cycles

pDLT.M

matrix of probability of observing DLT for all doses and cycles

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data("prob")

wm <- matrix(c(0, 0.5, 0.75, 1, 1.5,
               0, 0.5, 0.75, 1, 1.5,
               0, 0, 0, 0.5, 1),
             byrow = TRUE, ncol = 5)          # weighted matrix for toxicity matrix
                                              # nrow = No.of type; ncol = No. of grade
toxmax <- 2.5

nTTP.all <- nTTP.array(wm, toxmax)

tox.matrix <- prob["MTD4", "flat", , , , ]

nTTP_summary(tox.matrix, nTTP.all, wm)

phase1PRMD documentation built on May 1, 2019, 9:26 p.m.