fit_core: Fit Core Model

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

View source: R/ares.r

Description

Fit the core model

Usage

1

Arguments

formula

the formula for the model. See formula

class

a class for the model to be used in the fitting process. Default is gam. See Details

...

further arguments for the model fitting function

Details

This function is primarily a wrapper for the real fitting function. For now, gam and glm are the allowed classes. However, other fitting methods can be added in the future. Some information is added to the resulting object and therefore the class ares is added to its inheritance. For details on GAM options and output see gam for GLM options and output see glm.

Value

An object of the same class as the one specified by class. See each class help for a list of objects returned.

Author(s)

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

References

Schwartz, J., Spix, C., Touloumi, G. et al. (1996) Methodological issues in studies of air pollution and daily counts of deaths or hospital admissions. J Epidemiol. Community Health 50 (suppl 1), S12–S18.

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

plot,smooth.spline,setup

Examples

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

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