# NOT RUN {
ntox = 3 # three different types of toxicity
coh.size = 3 # number of patients enrolled per dose
# Observed AE grades for each patient on tested dose
obs = data.frame(tox1 = c(3, 2, 4),
tox2 = c(1, 1, 2),
tox3 = c(2, 3, 3))
# Toxicity burden weight matrix
W = matrix(c(0, 0.5, 0.75, 1.0, 1.5, # Burden weight for grades 0-4 for toxicity 1
0, 0.5, 0.75, 1.0, 1.5, # Burden weight for grades 0-4 for toxicity 2
0, 0.00, 0.00, 0.5, 1), # Burden weight for grades 0-4 for toxicity 3
nrow = ntox, byrow = TRUE)
# Acceptable (p2) and unacceptable nTTP values
p1 <- 0.35
p2 <- 0.10
LRtox.nTTP(obs, ntox, coh.size, W, p1, p2, K = 2, std.nTTP = 0.15)
# }
Run the code above in your browser using DataLab