R/llhoodnb.R

Defines functions llhoodnb

llhoodnb <-
function(y, data, r, h){
  llihood <- c()
    for(j in 1:(length(y) - 1)){
      llihood[j] <- logliknb(y[j], y[j + 1], data, r, h)$ll  
    }
  loglikelihood <- sum(llihood)
}

Try the breakpoint package in your browser

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

breakpoint documentation built on May 1, 2019, 8:14 p.m.