R/eta.w.hat.R

Defines functions eta.w.hat

Documented in eta.w.hat

eta.w.hat<-function(xin,kfun)
{
  s1<-length(xin)
  h<- bw.nrd(xin)
  Vi1 <-IntKde(xin, xin, h, IntEpanechnikov)
  Ui1.1<-kde(xin, xin, h, kfun)
  Ui1.2<-kde(xin, -xin, h, kfun)
  Ui1<- (Ui1.1+ Ui1.2)/2
  MeanUi1<-mean(Ui1 )
  MeanVi1<-mean(Vi1)
  etahat<- -(sum(Ui1 * Vi1) - s1 * MeanUi1 * MeanVi1)/sqrt( (sum(Ui1^2) - s1 *MeanUi1^2) * (sum(Vi1^2) - s1 * MeanVi1^2))
  etahat
}

Try the asymmetry.measures package in your browser

Any scripts or data that you put into this service are public.

asymmetry.measures documentation built on July 22, 2020, 9:06 a.m.