R/Local_LL.r

Defines functions Local_LL

Documented in Local_LL

Local_LL <- function(x, w, phi) {
  n <- length(x)
  dx <- diff(x)
  L <- sum(w * phi) - sum(dx * J00(phi[1:(n - 1)], phi[2:n]))
  return(L)
}

Try the logcondens package in your browser

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

logcondens documentation built on Aug. 22, 2023, 5:06 p.m.