AsyK (version 1.5.4)

compLR: Plot Density by RIG and Laplace kernel.

Description

Plot densities by using Resiprocal Inverse Gaussian and Laplace Kernel.

Usage

compLR(y, k, h)

Arguments

y

a numeric vector of positive values.

k

gird points.

h

the bandwidth

Details

It plot the densities by Laplace, RIG kernel and with real density at the same time.

References

  • 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.

Examples

Run this code
# 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