Function to extract the log-likelihood for a fitted
fitted model objects of class
This function extracts the penalized log likelihood for a fit produced by
namely a Poisson GAM fit as returned by
Notice that the model degrees of freedom are the effective degrees of freedom and not the number of coefficients, as the model is estimated by penalized likelihood.
logLik object: see
Vito M. R. Muggeo firstname.lastname@example.org based directly on
package by S. Wood.