mselap {AsyK} | R Documentation |
Calculate MSE by using Laplace Kernel.
mselap(y, k, h, type)
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". |
MSE
y<-rexp(100,1) h<-0.79 * IQR(y) * length(y) ^ (-1/5) mselap(y,200,h,"exp")