pgps: Generalized Pearson's Statistic

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

View source: R/ares.r

Description

Compute Generalized Pearson's statistic for a Poisson GAM model

Usage

1
pgps(model)

Arguments

model

a model fitted by fit_core

Details

This function extracts necessary information from model and compute ∑_{t=1}^{n}≤ft(y_{t}-E≤ft(y_{t}\right)\right)^{2}/E≤ft(y_{t}\right).

Value

A scalar with the statistic.

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)
pgps(m)

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