bwd.nrd | R Documentation |
Computes the optimal bandwidth with the Silverman's rule of thumb, to be used for a kernel estimator with given points and weights.
bwd.nrd(x, w=replicate(length(x),1), d = 2)
x |
numeric vector: sample points to be used for a normal kernel estimator. |
w |
numeric vector of the same length of |
d |
number of dimensions of the kernel estimator. |
Computes the optimal bandwidth with the Silverman rule, for a kernel
estimator with points x
and weights w
.
If a multivariate kernel is used, (i.e. d
> 1),
bwd.nrd
must be called for each variable. It computes dispersion only with the weighted standard deviation, with no robust alternative. Called by kde2dnew.fortran
.
The value of the bandwidth for a sample x
and weights w
.
It is used in connection with the the declustering method of etasFLP
. Points with an higher probability of being part of the background seismicity will weight more in the estimation of the background seismicity.
This is a slight modification of bw.nrd
.
Marcello Chiodi
Silverman, B.W. (1986). Density Estimation for Statistics and Data Analysis. Chapman and Hall: London.
#####
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.