R/logLik.tsglm.R

Defines functions logLik.tsglm

Documented in logLik.tsglm

logLik.tsglm <- function(object, ...){
  result <- object$logLik
  attr(result, "df") <- length(coef(object)) + length(object$distrcoefs)
  attr(result, "nobs") <- object$n_eff
  class(result) <- "logLik"
  return(result)
}

Try the tscount package in your browser

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

tscount documentation built on Nov. 25, 2017, 3:01 a.m.