Learn R Programming

DEEVD (version 1.2.1)

mseweibull: Calculate Mean Square Error( MSE) when Weibull kernel is used.

Description

Calculate MSE by using Weibull Kernel.

Usage

mseweibull(y, k, h, type)

Arguments

y

a numeric vector of positive values.

k

gird points.

h

the bandwidth

type

mention distribution of vector.If Gumbel distribution is used scale=1 then use "Gumbel". if use Weibull distribution with scale = 1 then use "Weibull". if use Frechet distribution with scale=1 and shape=1 then use "Frechet".

Value

MSE

References

Salha, R. B., El Shekh Ahmed, H. I., & Alhoubi, I. M. 2014. Hazard Rate Function Estimation Using Weibull Kernel. Open Journal of Statistics 4 (08), 650-661.

See Also

For Gumbel estimator MSE see msegumbel. For density estimation by using Weibull Kernel plot.Weibull and for estimated values of density Weibull.

Examples

Run this code
# NOT RUN {
y<-rweibull(350,1)
h<-0.79 * IQR(y) * length(y) ^ (-1/5)
mseweibull(y,200,h,"Weibull")
# }

Run the code above in your browser using DataLab