nTTP_summary {phase1PRMD}R Documentation

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

Description

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

Usage

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


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)


[Package phase1PRMD version 1.0.2 Index]