DEEVD (version 0.1.0)

msegum: Calculate Mean Square Error( MSE) when Gumbel kernel is used.

Description

Calculate MSE by using Gumbel Kernel.

Usage

msegum(y, k, h, type)

Arguments

y

a numeric vector of positive values.

k

gird points.

h

the bandwidth

type

mention distribution of vector.If Gumbeldistribution 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

Examples

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

Run the code above in your browser using DataLab