Re: [R] Histograms and Sturges rule

2007-11-27 Thread Paul Smith
On Nov 28, 2007 12:32 AM, Deepayan Sarkar <[EMAIL PROTECTED]> wrote: > > According to the Sturges rule, the number of classes of a histogram is > > the closest integer to > > > > 1 + logb(n,base=2) > > > > where n is the number of observations. The function hist(), by > > default, uses the Sturges

Re: [R] Histograms and Sturges rule

2007-11-27 Thread Deepayan Sarkar
On 11/27/07, Paul Smith <[EMAIL PROTECTED]> wrote: > Dear All, > > According to the Sturges rule, the number of classes of a histogram is > the closest integer to > > 1 + logb(n,base=2) > > where n is the number of observations. The function hist(), by > default, uses the Sturges rule. However, the

[R] Histograms and Sturges rule

2007-11-27 Thread Paul Smith
Dear All, According to the Sturges rule, the number of classes of a histogram is the closest integer to 1 + logb(n,base=2) where n is the number of observations. The function hist(), by default, uses the Sturges rule. However, the code x <- 1:200 hist(x) produces a histogram with 10 classes an