BookmarkSubscribeRSS Feed
clarkchong1
Fluorite | Level 6

I know that SAS creates ROC curve and calculate AUROC for free when I run PROC LOGISTIC.
According to this blog, Area Under Precision-Recall Curve is more appropriate in quantifying discrimination power of a model than AUROC.
https://machinelearningmastery.com/roc-curves-and-precision-recall-curves-for-classification-in-pyth...

I tried searching online but could not find any instructions for plotting the curve or calculating AUPRC in base SAS (with SAS/STAT).

 

Is there a built-in function for it? If not, how can we implement this?

 

I am using SAS 9.4M4 with SAS/STAT 14.2

Thank you!

1 REPLY 1
Reeza
Super User

Looks like this would be a roll your own unfortunately. 

 

You can capture the output in a data set, do the calculations in a data step and then plot it using SGPLOT. 

 


@clarkchong1 wrote:

I know that SAS creates ROC curve and calculate AUROC for free when I run PROC LOGISTIC.
According to this blog, Area Under Precision-Recall Curve is more appropriate in quantifying discrimination power of a model than AUROC.
https://machinelearningmastery.com/roc-curves-and-precision-recall-curves-for-classification-in-pyth...

I tried searching online but could not find any instructions for plotting the curve or calculating AUPRC in base SAS (with SAS/STAT).

 

Is there a built-in function for it? If not, how can we implement this?

 

I am using SAS 9.4M4 with SAS/STAT 14.2

Thank you!


 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 3501 views
  • 0 likes
  • 2 in conversation