resdf: Residual Degrees of Freedom

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

View source: R/ares.r

Description

Extract residual degrees of freedom from a GAM model

Usage

1
resdf(model)

Arguments

model

a model fitted by fit_core

Details

This function extracts necessary information from model. It include both linear and smooth terms.

Value

A scalar with the residual degrees of freedom.

Author(s)

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

References

McGullagh, P., Nelder, J. A. (1989) Generalized linear models. Chapman and Hall.

Hastie, T., Tibshirani, R. (1990) Generalized additive models. 2 ed. Chapman and Hall.

See Also

fit_core,gam,glm

Examples

1
2
3
4
5
data(admrio)
setup(admrio,"date")
f <- resp5~s(time)+weekdays+s(tmpmax)+s(humid)
m <- fit_core(f)
resdf(m)

wjunger/ares documentation built on Dec. 23, 2021, 5:17 p.m.