Plot densities by using Resiprocal Inverse Gaussian and Laplace Kernel.
compLR(y, k, h)
a numeric vector of positive values.
gird points.
the bandwidth
It plot the densities by Laplace, RIG kernel and with real density at the same time.
Khan, J. A.; Akbar, A. Density Estimation by Laplace Kernel. Working paper, Department of Statistics, Bahauddin Zakariya University, Multan, Pakistan.
Scaillet, O. 2004. Density estimation using inverse and reciprocal inverse Gaussian kernels. Nonparametric Statistics, 16, 217-226.
# NOT RUN { y<-rexp(100,1) h<-0.79 * IQR(y) * length(y) ^ (-1/5) compLR(y,80,h) # }
Run the code above in your browser using DataLab