[R] Is this my mistake or a bug?(K-S test and EVT)

Peter Ehlers ehlers at math.ucalgary.ca
Wed May 31 22:48:30 CEST 2006


Mu Tian wrote:

> Hi,
> 
> I was doing a Kolmogrov test on x, y shown below. They are both 151 long.
> According to the help file, exact p-value is not available so I set "exact =
> FALSE", but still got the warning. There are no duplicated values in either
> X or Y.
> 
But I'll wager that there are some Xs equal to Ys.

> Thank you for your tips.
> 
> BTW, is there functions in R about Extreme value theory?
> 
Packages evd and evir and perhaps others.

Peter Ehlers

> ********************************************
> 
> 
>>ks.test(x, y, exact=FALSE)
> 
> 
>         Two-sample Kolmogorov-Smirnov test
> 
> data:  x and y
> D = 0.0199, p-value = 1
> alternative hypothesis: two.sided
> 
> Warning message:
> cannot compute correct p-values with ties in: ks.test(x, y, exact = FALSE)
> 
[snip]



More information about the R-help mailing list