DELTD (version 0.1.0)

mseBS: Calculate Mean Square Error( MSE) when Birnbaum-Saunders kernel is used.

Description

Calculate MSE by using Birnbaum-Saunders Kernel.

Usage

mseBS(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".

Value

MSE

Examples

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

Run the code above in your browser using DataCamp Workspace