bandwidth.nrd(x, freq)
x
, giving frequencies
(positive integers).
If supplied, equivalent to replacing
x
with
rep(x, freq)
.
This function is taken from Venables and Ripley (1997).
Silverman, B. W. (1986)
Density Estimation for Statistics and Data Analysis.
Chapman and Hall.
Venables, W. N. and Ripley, B. D. (1997)
Modern Applied Statistics with S-PLUS,
Second Edition.
Springer.
bandwidth.nrd(rnorm(300))