[R] KS Test Warning Message

justin rapp jdrapp at gmail.com
Sun Jul 9 16:24:50 CEST 2006


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?


More information about the R-help mailing list