powered by
Calculate the bandwidth estimator using various methods.
Silverman(x)Silverman2(x)bw(x, type)
Silverman2(x)
bw(x, type)
A vector of data points.
One of the following options:
-1: Silverman's rule of thumb.
-2: Silverman's adapted rule of thumb.
>0: The real number is returned without any calculations.
Silverman: Bandwidth estimator based on Silverman's rule of thumb.
Silverman2: Bandwidth estimator based on Silverman's adapted rule of thumb.
bw: Bandwidth estimator based on the selected method.
# NOT RUN { set.seed(1) x <- rnorm(100) Silverman(x) Silverman2(x) bw(x, -1) bw(x, -2) bw(x, 0.5) # }
Run the code above in your browser using DataLab