Re: [R] Cramer-von Mises normality test

From: Raymond Wan <>
Date: Wed 14 Jun 2006 - 19:28:33 EST

Hi Robert,

On Tue, 13 Jun 2006, Robert Powell wrote:
> I've been running some normality tests using the nortest package. For
> some of my datasets the Cramer-von Mises normality test generates an
> extremely high probability (e.g., 1.637e+31) and indicates normality
> when the other tests do not. Is there something I'm misunderstanding
> or potentially a bug in the code?
> Below are the results of the tests and then, below that, I've
> provided that column of the datafile.

         Well, I can't answer all of your questions, but I did try your sample and at least your installation does the same thing as mine. That is, for your sample data, I got the same results.

         Each test is slightly different and looks for different characteristics. So, it is not unusual for one test to indicate normality, but another one doesn't. Granted, the difference in p-value is quite large...

         I plotted the histogram of your data and to me, it doesn't "look" very normal...not very scientific, I know...

         If you can locate it, I suggest finding the book "Testing for Normality" which the Nortest package cites. It is quite good and might explain something to you...unfortunately, neither it nor any source I've found gives a simple table that says: Use test X if you want to see if the Y property of the distribution is normal. (Various tests seems to place different emphasis on different things...)

Ray mailing list PLEASE do read the posting guide! Received on Wed Jun 14 19:30:01 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 Wed 14 Jun 2006 - 20:11:18 EST.

Mailing list information is available at Please read the posting guide before posting to the list.