Description Usage Arguments Examples
Three plots are currently available: a plot of true toxicity at each dose level (type = "s"
); a bar plot of the probability of selecting as the MTD for each dose level (type = "prob"
); a bar plot of the average number of patients treated at each dose level (type = "np"
); a bar plot of the average number of patients experienced DLT at each dose level (type = "dlt"
) and type = "all"
generates all above plots.
1 2 3 4 5 6 7 8 9 10 11 12 |
x |
an object of class |
pt |
a vector with target toxicity for each scenario. |
s |
scenario to be plotted. Defaults to 1. |
type |
plot type. See descriptions above. |
label |
a logical value indicating if values are shown on plot. |
col |
graphical parameter |
text.col |
plotting color of text shown. |
cex |
graphical parameter |
... |
arguments to be passed to |
1 2 3 4 5 6 7 8 9 | # generate decision table
dt <- dec.table(0.6,0.4,0.2,0.3,c(3,3,3))
# simulate trials from test data
test.file <- system.file("extdata", "testS.csv", package = "tsdf")
out <- sl.sim(dt$table, test.file)
plot(out, pt=rep(0.3,2), s=1, type="all")
plot(out, pt=rep(0.3,2), s=2, type="prob")
plot(out, pt=rep(0.3,2), s=1, type="np")
plot(out, pt=rep(0.3,2), s=2, type="dlt")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.