[R] Kolmogorov-Smirnov Test
Bayesianbay at aol.com
Tue Oct 15 11:49:15 CEST 2002
Many thanks for the help I received from people yesterday regarding vector
I have a question regarding the Kolmogorov-Smirnov test.
I have a vector of 1000 numbers (called 'data') which I suspect to follow a
chi-squared distribution with 9 df so I am running the command:
ks.test(data, "pchisq", df=9)
I am continually getting a p-value of < 2.2e-16 which is leading to a
continual conclusion that my numbers are not equal to the distribution being
I have tried changing the number of df and although the value of D statistic
changes (ranging from 0.2 to 1) I always get a p-value of < 2.2e-16
What I am doing wrong here and is there any way to forc R to give me any more
detail about the calculation it has carried out?
Thanks in advance
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help