An accessor function used to extract the (maximized) log-likelihood from an 'izip' or a 'tsizip' object.

# S3 method for izip
logLik(object, ...)

# S3 method for logLik.izip
print(x, ...)

# S3 method for tsizip
logLik(object, ...)

# S3 method for logLik.tsizip
print(x, ...)

Arguments

object

an object of class 'izip' object or 'tsizip', obtained from a call to glm.izip or tsglm.izip

...

other arguments passed to or from other methods (currently unused).

x

an object of class 'logLik.izip' or 'logLik.tsizip', obtained from a call to logLik.izip or logLik.tsizip.

See also

Examples

data(bioChemists) M_bioChem <- glm.izip(art ~ ., data = bioChemists) logLik(M_bioChem)
#> 'log Lik. ' -1613.16 (df=7)
data(arson) M_arson <- tsglm.izip(arson ~ 1, past_mean_lags = 1, past_obs_lags = c(1, 2)) logLik(M_arson)
#> 'log Lik. ' -197.2757 (df=5)