[R] ks.test not working?

2007-01-14 Thread Benjamin Dickgiesser
Hi, I am trying the following: library(ismev) library(evd) fit <- gev.fit(x,show=FALSE) ks.test(x,pgev,fit$mle[1],fit$mle[2],fit$mle[3]) but I am getting: Warning message: cannot compute correct p-values with ties in: ks.test(x, pgev, fit$mle[1], fit$mle[2], fit$mle[3]) where x is: [1] 239

Re: [R] ks.test not working?

2007-01-14 Thread Uwe Ligges
Benjamin Dickgiesser wrote: > Hi, > > I am trying the following: > > library(ismev) > library(evd) > > fit <- gev.fit(x,show=FALSE) > ks.test(x,pgev,fit$mle[1],fit$mle[2],fit$mle[3]) 1. The test *is* working. It simply warns (and does not report an error) that you have ties in your data and

Re: [R] ks.test not working?

2007-01-15 Thread Jasjeet Singh Sekhon
> cannot compute correct p-values with ties in: ks.test(x, pgev, > fit$mle[1], fit$mle[2], fit$mle[3]) You may want to use the ks.boot function in the Matching package which implements a bootstrap ks-test which provides consistent pvalues (achieved significance levels) when there are ties. Cheer