BookmarkSubscribeRSS Feed
Toni2
Lapis Lazuli | Level 10

i use the proc npar1way to estimate the Kolmogorov-Smirnov for testing two samples

 

I follow the below site in order to complete the KS test

 

Two Sample Kolmogorov-Smirnov Test | Real Statistics Using Excel (real-statistics.com)

 

Based on the above site i need to estimate the critical value for KS which is not produced from npar1way

 

The below is from the site above and shows how we can estimate the critical value 

 

My question is : is there any procedure in SAS which can estimate it? if not, could someone help to estimate it? 

 

Dm,n,a = c(a) * sqrt(m+n)/(mn)
6 REPLIES 6
PaigeMiller
Diamond | Level 26

PROC NPAR1WAY as far as I know doesn't provide critical values (most — maybe all — PROCs in SAS do not) but it does indicate the p-value, which lets you know if the observed statistic is less than or greater than the critical value. That's really all you need to know for data analysis, you don't need the actual critical value. (The only time you would need the exact critical value is for homework or for some academic papers — although every journal I have ever seen accepts the p-value.)

 

 

--
Paige Miller
Toni2
Lapis Lazuli | Level 10
Thanks, is there any value to estimate the critical value? I mean is it going to lead me in a different conclusion? (for example, to accept a hypothesis which i rejected previously with the p-value)
PaigeMiller
Diamond | Level 26

The p-value is widely used and understood (within statistical discussions) and will tell you if the observed statistic is above or below the critical value. So, I can't remember the last time I had to use a critical value.

--
Paige Miller
Toni2
Lapis Lazuli | Level 10
Thnka you 🙂
Toni2
Lapis Lazuli | Level 10
very very useful! many thanks!

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 6 replies
  • 2050 views
  • 10 likes
  • 3 in conversation