Extract the log likelihood for a modTempEff fit

Share:

Description

Function to extract the log-likelihood for a fitted modTempEff model.

Usage

1
2
## S3 method for class 'modTempEff'
logLik(object,...)

Arguments

object

fitted model objects of class modTempEff as produced by tempeff().

...

ignored

Details

This function extracts the penalized log likelihood for a fit produced by tempeff(), namely a Poisson GAM fit as returned by mgcv::gam().

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.

Value

Standard logLik object: see logLik.

Author(s)

Vito M. R. Muggeo vito.muggeo@unipa.it based directly on logLik.gam in mgcv package by S. Wood.

See Also

AIC