Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.64.0902070104440.16785@galjas.few.vu.nl>
Date: 2009-02-09T01:13:30Z
From: Peter Kampstra
Subject: beanplot, Error in shapiro.test(x)
In-Reply-To: <bf460e020902060840v4031d4e1q50bacfc3ea0b4c2@mail.gmail.com>

On Fri, 6 Feb 2009, Markus Loecher wrote:

> I am getting the following error message:
>
> Error in shapiro.test(x) : sample size must be between 3 and 5000
>
> I am not even sure why the shapiro.test is being used, but is there any
> workaround ?

Yes, use log="". (ex: beanplot(rnorm(5001),log="") )

The default, log="auto", uses shapiro.test. Perhaps this should be 
improved for sample sizes greater than 5000. On the other end, 
shapiro.test could be improved in the future, and 5000 is quite a lot for 
a beanplot. When the data set is very large, R will freeze for some time.

Regards,

Peter Kampstra