deviance.pgam: Deviance extraction

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/pgam.r

Description

Method for total deviance value extraction.

Usage

1
2
## S3 method for class 'pgam'
deviance(object, ...)

Arguments

object

object of class pgam holding the fitted model

...

further arguments passed to method

Details

See predict.pgam for further information on deviance extration in Poisson-Gamma models.

Value

The sum of deviance components.

Author(s)

Washington Leite Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br

References

Harvey, A. C., Fernandes, C. (1989) Time series models for count data or qualitative observations. Journal of Business and Economic Statistics, 7(4):407–417

Junger, W. L. (2004) Semiparametric Poisson-Gamma models: a roughness penalty approach. MSc Dissertation. Rio de Janeiro, PUC-Rio, Department of Electrical Engineering.

See Also

pgam, pgam.fit, pgam.likelihood

Examples

1
2
3
4
5
6
7
library(pgam)
data(aihrio)
attach(aihrio)
form <- ITRESP5~f(WEEK)+HOLIDAYS+rain+PM+g(tmpmax,7)+g(wet,3)
m <- pgam(form,aihrio,omega=.8,beta=.01,maxit=1e2,eps=1e-4,optim.method="BFGS")

deviance(m)

pgam documentation built on May 2, 2019, 10:42 a.m.

Related to deviance.pgam in pgam...