AsyK (version 1.5.4)

Laplace: Estimated Density Values by Laplace kernel

Description

Estimated Kernel density values by using Laplace Kernel.

Usage

Laplace(y, k, h)

Arguments

y

a numeric vector of positive values.

k

gird points.

h

the bandwidth

Value

x

grid points

y

estimated values of density

Details

Laplace kernel is developed by Khan and Akbar. Kernel is developed by using Chen's idea. Laplace kernel is; $$K_{Laplace\left(x,h^{\frac{1}{2}}\right)} (u)=\frac{1}{2\sqrt h}exp \left(-\frac{|{u-x}|}{\sqrt h}\right)$$

References

Khan, J. A.; Akbar, A. Density Estimation by Laplace Kernel. Working paper, Department of Statistics, Bahauddin Zakariya University, Multan, Pakistan.

See Also

To examine laplace density plot see plot.Laplace and for Mean Squared Error mseLap. Similarly, for RIG kernel RIG.

Examples

Run this code
# NOT RUN {
y <- rexp(100,1)
h <- 0.79 * IQR(y) * length(y) ^ (-1/5)
Laplace(y,200,h)
# }

Run the code above in your browser using DataLab