r - Poisson Kolmogorov Smirnov ties warning -


i trying run ks test on vector check if follows poisson distribution

require("mass")  data <- rpois(100000, 20) distfit<-fitdistr(data,"poisson") ks.test(data,"ppois",lambda=distfit$estimate) 

unfortunately following message once run ks.test in next step

warning message: in ks.test(data, "ppois", lambda = distfit$estimate) : ties should not present kolmogorov-smirnov test

any idea how fix this?

you apply jitter function data break ties ... have @ ?jitterto find out if fits needs


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -