Statistical Procedures

Programming the statistical procedures from SAS
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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
  • 3775 views
  • 0 likes
  • 2 in conversation