Examples for 'MASS::bandwidth.nrd'


Bandwidth for density() via Normal Reference Distribution

Aliases: bandwidth.nrd

Keywords: dplot

### ** Examples

# The function is currently defined as
function(x)
{
    r <- quantile(x, c(0.25, 0.75))
    h <- (r[2] - r[1])/1.34
    4 * 1.06 * min(sqrt(var(x)), h) * length(x)^(-1/5)
}
<srcref: file "" chars 6:1 to 11:1>
<environment: 0x55ccff8b8f90>

[Package MASS version 7.3-58.2 Index]