Function to compute the log-likelihood at the estimated parameters for mixed Poisson regression models.
# S3 method for mixpoissonreg logLik(object, ...)
object | an object of class "mixpoissonreg" containing results from the fitted model. |
---|---|
... | further arguments passed to or from other methods. |
Returns an object of class LogLik
containing the log-likelihood
of the fitted mixpoissonreg object.
# \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)#> 'log Lik.' -868.4331 (df=4)