Description Usage Arguments Value Examples
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.
1 | nTTP.array(wm, toxmax)
|
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 |
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.