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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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