8.18 Resources
The
lmfunction is used to fit linear models. It can be used to carry out regression, single stratum analysis of variance and analysis of covariance (although aov may provide a more convenient interface for these).The
glmfunction is used to fit generalized linear models, specified by giving a symbolic description of the linear predictor and a description of the error distribution.