AsyK (version 1.5.4)

laphcomp: Calculate MSE with and ranking of Bandwidth with respect to MSE for Laplace Kernel.

Description

Caculate MSE with 19 bandwidths by using Laplace Kernel.

Usage

laphcomp(y, k, type)

Arguments

y

a numeric vector of positive values.

k

gird points.

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

MSE with 19 bandwidths, Ranks, Minimum MSE, Maximum MSE

Details

This function helps to calculate MSE by using 19 different bandwidths which are Normal Scale Rule (NSR), Complete Cross Validation (CCV), Biased Cross Validation (BCV), Unbiased Cross Validation (UBCV), Direct Plug-In (DPI), Modified Cross Validation (MCV), Maximum Likelihood Cross Validation (MLCV), Trimmed Cross Validation (TCV), Smooth Cross Validation (SCV), Bootstrap without Sampling (bWOs), Bootstrap with Sampling (bWs), Bandwidth of Altman and Leger (AL), One-sided Cross Validation (OCV), Akaike information criterion (AIC), Indirect Cross Validation (ICV), Mallow<U+2019> Cp (MallowCp), Generalized Cross Validation (GCV), Polansky and Baker Plug-In (PB), and Gasser, Kniep, and K<U+00F6>hler Cross Validation (GKK). For RIG kernel see righcomp.

References

Khan, J. A.; Akbar, A. Density Estimation by Laplace Kernel. Working paper, Department of Statistics, Bahauddin Zakariya University, Multan, Pakistan.

Examples

Run this code
# NOT RUN {
 
# }
# NOT RUN {
y<-rexp(100,1)
  laphcomp(y, 200, "Exp")
# }

Run the code above in your browser using DataLab