Learn R Programming

scam (version 1.2-17)

logLik.scam: Log likelihood for a fitted SCAM, for AIC

Description

Function to extract the log-likelihood for a fitted scam model (fitted by penalized likelihood maximization). Used by AIC.

The function is a clone of logLik.gam of the mgcv package.

The documentation below is similar to that of object logLik.gam.

Usage

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

Value

Standard logLik object: see logLik.

Arguments

object

fitted model objects of class scam as produced by scam().

...

unused in this case

Details

see logLik.gam for details.

References

Hastie and Tibshirani, 1990, Generalized Additive Models.

Wood, S.N. (2008) Fast stable direct fitting and smoothness selection for generalized additive models. J.R.Statist. Soc. B 70(3):495-518

See Also