mse: Calculate Mean Square Error( MSE) by using Extreme value...

Description Usage Arguments Value Author(s) References Examples

View source: R/DEEVD.R

Description

This function calculates the mean squared error (MSE) by using user specified kernel. But distribution of vector should be Exponential, Gamma, Gumbel, Frechet or Weibull. Any other choice of distribution will result NaN. This function is simillar to function mse in DELTD, but here more distributions are available for distribution vector.

Usage

1

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 type "Gamma".If Gumbel distribution is used with scale=1, then use "Gumbel". If Weibull distribution then use "Weibull". If use Weibull distribution with scale = 1 then use "Weibull". If use Frechet distribution with scale=1 and shape=1 then use "Frechet".

Value

Mean Squared Error (MSE)

Author(s)

Javaria Ahmad Khan, Atif Akbar

References

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
y <- rexp(100, 1)
xx <- seq(min(y) + 0.05, max(y), length = 500)
h <- 2
gr <- Gumbel(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)

DEEVD documentation built on Nov. 28, 2021, 5:07 p.m.