Scott Method for Histogram Bin Counts

DESCRIPTION:

Uses the Scott method for determining how many bins to use in a histogram.

USAGE:

nclass.scott(x, freq = NULL) 

REQUIRED ARGUMENTS:

x
a numeric vector

OPTIONAL ARGUMENTS:

freq
vector of positive integers, the same length as x, containing frequencies. If present, results are equivalent to repeating elements of x, using rep(x, freq).

VALUE:

number of bins

DETAILS:

This function is based upon the function nclass.scott in Venables and Ripley (1997).

REFERENCE:

Venables, W. N. and Ripley, B. D. (1997) Modern Applied Statistics with S-PLUS, Second Edition. Springer.

SEE ALSO:

, , ,