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 Sept. 8, 2020, 9:08 a.m.