BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Toni2
Lapis Lazuli | Level 10

hi i use the proc npar1way with the edf option to produce the KS statistic.

 

My aim is using KS to understand if sample (smp) is different from the population (pop).

 

When i run the proc npar1way i get the below KS :

 

 

Kolmogorov-Smirnov Two-Sample Test
(Asymptotic)
KS 0.066667 D 0.133333
KSa 0.516398 Pr > KSa 0.9525

 

My question is: is there any easy way to estimate KS manually in SAS in order to understand better the above outcome? 

 

data final;
set smp (obs=30) pop (obs=30);
run;

proc sort data=final;
by application_score;
run;


ods graphics on;
proc npar1way edf plots=edfplot data=final;
class source;
var application_score;
/*exact ks;*/
run;
ods graphics off;
1 ACCEPTED SOLUTION
2 REPLIES 2

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1086 views
  • 2 likes
  • 2 in conversation