logLik.izip: Extract the (Maximized) Log-Likelihood from an iZIP Model Fit

Description Usage Arguments See Also Examples

View source: R/summarize_extract.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'izip'
logLik(object, ...)

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

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

## S3 method for class '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

coef.izip, fitted.izip, glm.izip, coef.tsizip, fitted.tsizip, tsglm.izip

Examples

1
2
3
4
5
6
7
data(bioChemists)
M_bioChem <- glm.izip(art ~ ., data = bioChemists)
logLik(M_bioChem)

data(arson)
M_arson <- tsglm.izip(arson ~ 1, past_mean_lags = 1, past_obs_lags = c(1, 2))
logLik(M_arson)

thomas-fung/izipr documentation built on Dec. 23, 2021, 9:57 a.m.