| bw_mrot_polysph | R Documentation |
Computes marginal (sphere by sphere) rule-of-thumb bandwidths for the polyspherical kernel density estimator using a von Mises–Fisher distribution as reference.
bw_mrot_polysph(
X,
d,
kernel = 1,
k = 10,
upscale = FALSE,
deriv = 0,
kappa = NULL
)
X |
a matrix of size |
d |
vector of size |
kernel |
kernel employed: |
k |
softplus kernel parameter. Defaults to |
upscale |
rescale bandwidths to work on
|
deriv |
derivative order to perform the upscaling. Defaults to |
kappa |
estimate of the concentration parameters. Computed if not provided (default). |
A vector of size r with the marginal optimal bandwidths.
García-Portugués, E. and Meilán-Vila, A. (2026). Kernel density estimation with polyspherical data and its applications. Journal of the American Statistical Association, 121(553):427–439. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1080/01621459.2025.2521898")}
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
bw_mrot_polysph(X = X, d = d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.