DEEVD (version 0.1.0)

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 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)
mseweibull(y,200,h,"Weibull")
# }

Run the code above in your browser using DataCamp Workspace