Function to compute the log-likelihood at the estimated parameters for mixed Poisson regression models.

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

Arguments

object

an object of class "mixpoissonreg" containing results from the fitted model.

...

further arguments passed to or from other methods.

Value

Returns an object of class LogLik containing the log-likelihood of the fitted mixpoissonreg object.

See also

Examples

# \donttest{ data("Attendance", package = "mixpoissonreg") daysabs_fit <- mixpoissonreg(daysabs ~ gender + math + prog | gender + math + prog, data = Attendance) logLik(daysabs_fit)
#> 'log Lik.' -853.2027 (df=10)
# } daysabs_prog <- mixpoissonreg(daysabs ~ prog, data = Attendance) logLik(daysabs_prog)
#> 'log Lik.' -868.4331 (df=4)