set.seed(123)
x <- rgamma(100, shape=2, rate = 8) # generates biomarker data from a gamma
# distribution for the healthy group.
y <- rgamma(100, shape=2, rate = 4) # generates biomarker data from a gamma
# distribution for the diseased group.
scores <- c(x,y)
D=c(pracma::zeros(1,100), pracma::ones(1,100))
out=threerocs(marker=scores, D, plots="on")
summary(out)
Run the code above in your browser using DataLab