R/llhood.MeanNormal.R

Defines functions llhood.MeanNormal

llhood.MeanNormal <-
function(y, data, v, h){
  llihood <- c()
  for(j in 1:(length(y) - 1)){
    llihood[j] <- loglik.MeanNormal(y[j], y[j + 1], data, h, v)$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 29, 2017, 11 a.m.