New WVPlot: ROCPlotPairList

[This article was first published on R – Win Vector LLC, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

We have a new R WVPlots plot: ROCPlotPairList. It is useful for comparing the ROC/AUC of multiple models on the same data set.

library(WVPlots)

set.seed(34903490)
x1 <- rnorm(50)
x2 <- rnorm(length(x1))
x3 <- rnorm(length(x1))
y <- 0.2*x2^2 + 0.5*x2 + x1 + rnorm(length(x1))
frm <- data.frame(
   x1 = x1,
   x2 = x2,
   x3 = x3,
   yC = y >= as.numeric(quantile(y, probs=0.8)))

WVPlots::ROCPlotPairList(
   frame = frm,
   xvar_names = qc(x1, x2, x3),
   truthVar = "yC", truthTarget = TRUE,
   title = "Example ROC list plot")

UntitledImage

Please check it out.

To leave a comment for the author, please follow the link and comment on their blog: R – Win Vector LLC.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)