Multivariate kernel density estimation

Description

Multivariate kernel density estimation.

Usage

1
mkde(x, h, thumb = "none")

Arguments

x

A matrix with Euclidean (continuous) data.

h

The bandwidh value. It can be a single value, which is turned into a vector and then into a diagonal matrix, or a vector which is turned into a diagonal matrix.

thumb

Do you want to use a rule of thumb for the bandwidth parameter? If no, leave it "none", or else put "estim" for maximum likelihood cross-validation, "scott" or "silverman" for Scott's and Silverman's rules of thumb respectively.

Details

The multivariate kernel density estimate is calculated with a (not necssarily given) bandwidth value. It is used a wrapper for the function comp.kerncontour.

Value

A vector with the density estimates calculated for every vector.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris <mtsagris@yahoo.gr> and Giorgos Athineou <athineou@csd.uoc.gr>

References

Arsalane Chouaib Guidoum (2015). Kernel Estimator and Bandwidth Selection for Density and its Derivatives. The kedd package. http://cran.r-project.org/web/packages/kedd/vignettes/kedd.pdf

M.P. Wand and M.C. Jones (1995). Kernel smoothing, pages 91-92.

B.W. Silverman (1986). Density estimation for statistics and data analysis, pages 76-78.

See Also

mkde.tune, comp.kerncontour

Examples

1
2
mkde( iris[, 1:4], thumb = "scott" )
mkde( iris[, 1:4], thumb = "silverman" )

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.