The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Guide for making ROC surface

Duc-Khanh To

2026-11-05

Simulated data

mu_true <- c(0, 2.5, 3.69)
sigma_true <- c(1, 1.1, 1.2)

n1 <- 30
n2 <- 30
n3 <- 30

X1 <- rnorm(n1, mu_true[1], sigma_true[1])
X2 <- rnorm(n2, mu_true[2], sigma_true[2])
X3 <- rnorm(n3, mu_true[3], sigma_true[3])

Plot ROC surface

out_roc_surface <- ROC_emp_surface(X1, X2, X3, ncp = 35,
                                   color = "steelblue", alpha = 0.5)
rgl::rglwidget(
    width = 800,
    height = 800
)
CR_tcfs(out_roc_surface, cpts = c(0.5, 3.4), fill = TRUE)
rgl::rglwidget(width = 800, height = 800)
rgl::close3d()
data_test <- data.frame(biom = c(X1, X2, X3), 
                          diag = rep(c("1", "2", "3"), c(n1, n2, n3)))
out_roc_surface_2 <- ROC_emp_surface(formula = biom ~ diag, data = data_test, ncp = 35,
                                     color = "steelblue", alpha = 0.5)
rgl::rglwidget(
    width = 800,
    height = 800
)

The formula fit supports the same confidence region. Run this chunk interactively to add it to the formula-based plot.

plot(out_roc_surface_2)
CR_tcfs(out_roc_surface_2, cpts = c(0.5, 3.4), fill = TRUE)
rgl::rglwidget(width = 800, height = 800)
rgl::close3d()

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.