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 [email protected] based directly on
package by S. Wood.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.