compLR {AsyK} | R Documentation |
Plot densities by using Resiprocal Inverse Gaussian and Laplace Kernel.
compLR(y, k, h)
y |
a numeric vector of positive values. |
k |
gird points. |
h |
the bandwidth |
It plot the densities by Laplace, RIG kernel and with real density at the same time.
Javaria Ahmad Khan, Atif Akbar.
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.
y<-rexp(100,1) h<-0.79 * IQR(y) * length(y) ^ (-1/5) compLR(y,80,h)