bw_rot_polysph | R Documentation |
Computes the rule-of-thumb bandwidth for the polyspherical kernel density estimator using a product of von Mises–Fisher distributions as reference in the Asymptotic Mean Integrated Squared Error (AMISE).
bw_rot_polysph(X, d, kernel = 1, kernel_type = c("prod", "sph")[1],
bw0 = NULL, upscale = FALSE, deriv = 0, k = 10, kappa = NULL, ...)
X |
a matrix of size |
d |
vector of size |
kernel |
kernel employed: |
kernel_type |
type of kernel employed: |
bw0 |
initial bandwidth for minimizing the CV loss. If |
upscale |
rescale bandwidths to work on
|
deriv |
derivative order to perform the upscaling. Defaults to |
k |
softplus kernel parameter. Defaults to |
kappa |
estimate of the concentration parameters. Computed if not provided (default). |
... |
further arguments passed to |
The selector assumes that the density curvature matrix
\boldsymbol{R}
of the unknown density is approximable by that of a
product of von Mises–Fisher densities,
\boldsymbol{R}(\boldsymbol{\kappa})
. The estimation of the
concentration parameters \boldsymbol{\kappa}
is done by maximum
likelihood.
If bw0
is a matrix, then the optimization is started at that row of
bandwidths that is most promising for the optimization, i.e., the bandwidths
that minimized the CV loss.
A list with entries bw
(optimal bandwidth) and opt
,
the latter containing the output of nlm
.
n <- 100
d <- 1:2
kappa <- rep(10, 2)
X <- r_vmf_polysph(n = n, d = d, mu = r_unif_polysph(n = 1, d = d),
kappa = kappa)
bw_rot_polysph(X = X, d = d)$bw
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.