DELTD (version 2.6.5)

mseEr: Calculate Mean Squared Error( MSE) when Erlang kernel is used

Description

Calculate MSE by using Erlang Kernel.

Usage

mseEr(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

MSE

References

Salha, R. B.; Ahmed, E. S.; Alhoubi, I. M. 2014. Hazard rate function estimation ksing Erlang Kernel. Pure Mathematical Sciences 3 (4), 141<U+2013>152.

See Also

For further MSE by using other kernels see mseBS, mseLN and mseGamma. For estimated values for density estimation Erlang and for density estimation by using Erlang Kernel plot.Erlang.

Examples

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

Run the code above in your browser using DataLab