kerndensp: Closeness of multivariate distribution to elliptical unimodal distribution
Description
Density- and and principal components-based distance between
multivariate data and a unimodal
elliptical distribution about the data mean, see Hennig and Coretto
(2021). For use in kerndenscluster.
See Hennig and Coretto (2021), Sec. 4.2. kerndensmeasure
is run on the principal components of x. The resulting measures
are standardised by kmeanfun and ksdfun
and then aggregated as mean square of the positive values, see
Hennig and Coretto (2021). The PCS is computed by
princomp and will always use siglist rather than
statistics computed from x.
References
Hennig, C. and P.Coretto (2021). An adequacy approach for deciding the
number of clusters for OTRIMLE robust Gaussian mixture based
clustering. To appear in Australian and New Zealand Journal of
Statistics, https://arxiv.org/abs/2009.00921.
# NOT RUN { set.seed(124578)
x <- cbind(runif(20),runif(20))
siglist <- list(cov=cov(x),center=colMeans(x),n.obs=20)
kerndensp(x,siglist=siglist)$measure
# }