I would like to do a K-S test with discrete data using ksmirnov. I have read previous posts on the list (the latest being http://www.stata.com/statalist/archive/2007-05/msg00489.html), but I can't figure out if the problem has been fixed. I understand that the easy solution implies conservative p values. The latest version is from 21 May 2007, but when I use it with discrete data it reports that there are ties in the data. Can I use it nevertheless (being aware that the results are conservative)?
The output currently looks as follows:
. ksmirnov guess, by(chosen)
Two-sample Kolmogorov-Smirnov test for equality of distribution functions:
Smaller group D P-value Corrected
----------------------------------------------
0: 0.0340 0.070
1: -0.0261 0.209
Combined K-S: 0.0340 0.140 0.132
Note: ties exist in combined dataset;
there are 74 unique values out of 5586 observations.
Does this mean that the problem wasn't fixed and that only a warning message has been added in the new version? ;-) The result is exactly the same as with the old version of ksmirnov.
Robert Ostling (new on the list)
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/