mseLap {AsyK}R Documentation

Calculate Mean Squared Error( MSE) when Laplace Kernel is used.

Description

Calculate MSE by using Laplace Kernel.

Usage

mseLap(y, k, h, type)

Arguments

y

a numeric vector of positive values.

k

gird points.

h

the bandwidth

type

mention distribution of vector.If exponential distribution then use "Exp". if use gamma distribution then use "Gamma".If Weibull distribution then use "Weibull".

Value

Mean Squared Error

References

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

See Also

For further MSE by using RIG kernel see mseRIG. For density estimation by using Laplace Kernel plot.Laplace and for estimated values of density Laplace.

Examples

y<-rexp(100,1)
 h<-0.79 * IQR(y) * length(y) ^ (-1/5)
 mseLap(y, 200, h, "Exp")

[Package AsyK version 1.5.4 Index]