[R] how to interpret KS test

Cedric Laczny cedric.laczny at gmx.de
Fri Aug 20 15:57:58 CEST 2010


On Friday, 20. August 2010 15:19:24 Izidine Pinto wrote:
> Dear R users
> I am using KS test to compare two different distribution for the same
> variable (temperature)  for two different time periods.
> H0: the two distributions are equal
> H1: the two distributions are different
> 
> ks.test (temp12, temp22)
> 
>     Two-sample Kolmogorov-Smirnov test
> 
> data:  temp12 and temp22
> D = 0.2047, p-value < 2.2e-16
> alternative hypothesis: two-sided
> 
> Warning message:
> In ks.test(temp12, temp22) : cannot compute correct p-values with ties
> 
> I don't rally know how to interpret the  output from R.
> 
> Any help is appreciated.
> 
> **
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html and provide commented,
> minimal, self-contained, reproducible code.

Oh, it seems my answer was a little bit to encompassing, as it seemed to me, 
that you did not understand the output of R at all.
If you were only refering your question to the part about ties, then please 
forget my suggestions on deepening your skills on statistics. Again, those 
were just hints, based on personal experience :)

Best,

Cedric



More information about the R-help mailing list