dispersion: Dispersion Parameter

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

View source: R/ares.r

Description

Estimate dispersion parameter

Usage

1
dispersion(model)

Arguments

model

a model fitted by fit_core

Details

This is an consistent and asymptotic estimation of the dispersion parameter based on generalized Pearson statistics for GLM models. It is given \frac{∑_{t=1}^{n}≤ft(y_{t}-E≤ft(y_{t}\right)\right)^{2}/E≤ft(y_{t}\right)}{n-df}, where n is the number of observations and df is the number of degrees of freedom used by the model.

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

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