mse {DELTD}R Documentation

Calculate Mean Squared Error( MSE) by using different Kernels

Description

This function calculates the mean squared error (MSE) by using user specified kernel. But distribution of vector should be Exponential, Gamma or Weibull. Any other choice of distribution will result NaN.

Usage

mse(kernel, type)

Arguments

kernel

type of kernel which is to be used

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

Mean Squared Error (MSE)

Author(s)

Javaria Ahmad Khan, Atif Akbar.

References

Examples

y <- rexp(100, 1)
xx <- seq(min(y) + 0.05, max(y), length = 500)
h <- 2
gr <- Gamma(x = xx, y = y, k = 200, h = h)
mse(kernel = gr, type = "Exp")
## if distribution is other than mentioned \code{type} is used then NaN will be produced.
## Not run: 
mse(kernel = gr, type ="Beta")

## End(Not run)

[Package DELTD version 2.6.8 Index]