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 @ ?jitter
to find out if fits needs
Comments
Post a Comment