ROC and AUC in R
This tutorial walks you through, step-by-step, how to draw ROC curves and calculate AUC in R. We start with basic ROC graph, learn how to extract thresholds for decision making, calculate AUC and partial AUC and how to layer multiple ROC curves on the same graph. You can get a copy of the code from […]

Get Learn Progress

in your inbox

no spam, just juicy content

Hussein Hallak

ROC and AUC in R

This tutorial walks you through, step-by-step, how to draw ROC curves and calculate AUC in R. We start with basic ROC graph, learn how to extract thresholds for decision making, calculate AUC and partial AUC and how to layer multiple ROC curves on the same graph.

You can get a copy of the code from the StatQuest GitHub, here:
https://github.com/StatQuest/roc_and_auc_demo/blob/master/roc_and_auc_demo.R

NOTE: This StatQuest builds on the example in the original ROC and AUC StatQuest:

Also, if you’re curious, here are some links to StatQuests about…
…Logistic Regression

…and Random Forests…

For a complete index of all the StatQuest videos, check out:

If you’d like to support StatQuest, please consider…
Patreon: https://www.patreon.com/statquest
…or…
YouTube Membership: https://www.youtube.com/channel/UCtYLUTtgS3k1Fg4y5tAhLbw/join

…a cool StatQuest t-shirt or sweatshirt (USA/Europe): https://teespring.com/stores/statquest
(everywhere):
https://www.redbubble.com/people/starmer/works/40421224-statquest-double-bam?asc=u&p=t-shirt

…buying one or two of my songs (or go large and get a whole album!)
https://joshuastarmer.bandcamp.com/

…or just donating to StatQuest!
https://www.paypal.me/statquest

Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
https://twitter.com/joshuastarmer



Learn blockchain in an afternoon. Without spending countless hours deciphering tech jargon

The only blockchain guide giving you full historical context in bite-sized information with visually stunning graphics


Leave a Reply

Your email address will not be published. Required fields are marked *

×
×

Cart