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:
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…
…and Random Forests…
For a complete index of all the StatQuest videos, check out:
If you’d like to support StatQuest, please consider…
YouTube Membership: https://www.youtube.com/channel/UCtYLUTtgS3k1Fg4y5tAhLbw/join
…a cool StatQuest t-shirt or sweatshirt (USA/Europe): https://teespring.com/stores/statquest
…buying one or two of my songs (or go large and get a whole album!)
…or just donating to StatQuest!
Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter: