Hi guys,
I am quite new to the topic. However I constructed the toy-example ROC curve displayed in the figure below. ROC curves determine the sensitivity and the specificity of an estimator when its threshold is varied. Stata provides different commands for them: roctab, roccomp, rocfit, rocgold, rocreg, and rocregplot.
Nonetheless, I have constructed figure below using a simple twoway connected command (because I pre-computed FPR and TPR in Matlab).
Array
Now the problem is that I would like to compute the Area Under the Curve (AUC) of such ROC (i.e. area between diagonal line and the curve). How can I do that?
Thank you
Related Posts with ROC curves in Stata
drawing normally distributed random variable within an intervalHello everyone, How can I create a normally distributed variable within [a,b], with HTML Code: me…
Creating start and end variablesHello, I would like to create start and end variables according to the data collection wave in which…
How to select the observation with a date that is closest to another date in STATAI have multiple blood test results for single pregnancies and wish to select the blood test result t…
Creating indicator variables xi, prefix() for an interaction termHi STATA friends, I aim to generate indicator variables regarding the interaction term c.budgetbala…
Online courses/Summer school to learn STATAHello, I am looking for a short courses during the summer in Europe to learn some knowledge using S…
Subscribe to:
Post Comments (Atom)
0 Response to ROC curves in Stata
Post a Comment