BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
progster
Fluorite | Level 6

hi guys!

i saw that proc logistic doesn't have kolmogorov-smirnov test. do you know any workaround about this?

Also i would like to see in the results something about gini coefficient, do you know how?

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
MichelleHomes
Meteorite | Level 14

The gini coefficient is calculated by 2 x c-statistic - 1 or alternatively you can look at the four indices of rank correlation in the PROC LOGISTIC output for the Somer's D statistic which is documented at SAS/STAT(R) 9.2 User's Guide, Second Edition

Kind Regards,

Michelle

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com

View solution in original post

4 REPLIES 4
MichelleHomes
Meteorite | Level 14

Hi,

That's right, proc logistic does not produce the KS test. You may find this usage note helpful, http://support.sas.com/kb/23/231.html

Kind Regards,

Michelle

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com
progster
Fluorite | Level 6

thanks! and what about the gini coefficient?

MichelleHomes
Meteorite | Level 14

The gini coefficient is calculated by 2 x c-statistic - 1 or alternatively you can look at the four indices of rank correlation in the PROC LOGISTIC output for the Somer's D statistic which is documented at SAS/STAT(R) 9.2 User's Guide, Second Edition

Kind Regards,

Michelle

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com
namit_sem007
Calcite | Level 5

Hi, You can use the following code for calculating the KS statistic. Proc npar1way gives us the KS statistic.

 

proc npar1way data= "proc logistic output dataset " edf;
class "response variable";
var "predicted variable in proc logistic";
run;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 9867 views
  • 4 likes
  • 3 in conversation