Learn R Programming

phase1PRMD (version 1.0.2)

nTTP.array: Generate the nTTP dictionary

Description

nTTP.array generates the nTTP dictionary for all combination of toxicity type and grade with a given toxicity weighted matrix. Used in function nTTP_summary for checking the toxicity scenario.

Usage

nTTP.array(wm, toxmax)

Arguments

wm

(numeric matrix, m by n) Toxicity weighted matrix, with row be the type of the toxicity and column be the toxicity grade

toxmax

(scalar) Normalized constant for nTTP

Value

An m dimensional array with dimension \((n, n, \ldots, n)\). The \((d1, d2 ,\ldots,dm), {di, i = 1\ldots, m} \in (1, \ldots, n)\)th element is the nTTP when the grade of \(i\)th type of toxicity has \(di\)th toxicity grade.

Examples

Run this code
# NOT RUN {
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.array(wm, toxmax)

# }

Run the code above in your browser using DataLab