[R] KS Test Warning Message

From: justin rapp <jdrapp_at_gmail.com>
Date: Mon 10 Jul 2006 - 00:24:50 EST


Happy World Cup and Wimbledon. This morning finds me with the first of my many daily questions.

I am running a ks.test on residuals obtained from a regression model.

I use this code:
> ks.test(Year5.lm$residuals,pnorm)

and obtain this output

        One-sample Kolmogorov-Smirnov test

data: Year5.lm$residuals
D = 0.7196, p-value < 2.2e-16
alternative hypothesis: two.sided

Warning message:
cannot compute correct p-values with ties in: ks.test(Year5.lm$residuals, pnorm)

I am wondering if anybody can tell me what this error message means.

Also, could anybody clarify how I could have a regression model with a high Rsquared, rouglhy .67, but with nonnormal residuals? Does this take away from the validity of my model?


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jul 10 00:30:00 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 10 Jul 2006 - 18:15:19 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.