| plot_mds_oc | R Documentation |
Produces a base R OC curve using the 'Pa' values returned by 'mds_oc()'.
plot_mds_oc(x, ...)
x |
Output from 'mds_oc()'. |
... |
Additional graphical arguments passed to 'plot()'. |
Different termination ratios 'a' are distinguished using different plotting symbols ('pch') and line types ('lty').
Invisibly returns the supplied data frame.
shape <- 2
a <- c(0.5, 1, 1.5, 2)
p_design <- 1 - exp(-(a / 1)^shape)
b_oc <- 2:12
p_oc <- sapply(
b_oc,
function(b)
1 - exp(-((a / b)^shape))
)
result <- mds_oc(
p_design = p_design,
a = a,
p_oc = p_oc,
b_oc = b_oc,
i = 3,
beta = 0.25,
c1 = 0,
c2 = 1
)
plot_mds_oc(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.