R/klik.R

"klik" <- function(delta,data,kde,grid,min){
  dshift<-data+delta
  vec<-(dshift-min)/grid
  index<-round(vec)+1
  sum(log(kde$y[index]+(kde$y[index+1]-kde$y[index])/grid*(dshift-kde$x[index])))
}

Try the MKLE package in your browser

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

MKLE documentation built on Aug. 21, 2023, 9:09 a.m.