nTTP.array: Generate the nTTP dictionary

Description Usage Arguments Value Examples

View source: R/nTTP.array.R

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

1
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, …, n). The (d1, d2 ,…,dm), {di, i = 1…, m} \in (1, …, n)th element is the nTTP when the grade of ith type of toxicity has dith toxicity grade.

Examples

1
2
3
4
5
6
7
8
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)

LuZhangstat/Phase1Mayo documentation built on March 16, 2020, 1:32 a.m.