
i
i
“K23166” — 2015/1/28 — 9:35 — page 67 — #93
i
i
i
i
i
i
Chapter 6
Linear regression and ANOVA
Regression and analysis of variance (ANOVA) form the basis of many investigations. Here
we describe how to undertake many common tasks in linear regression (broadly defined),
while Chapter 7 discusses many generalizations, including other types of outcome variables,
longitudinal and clustered analysis, and survival methods.
Many R commands can perform linear regression, as it constitutes a special case of which
many models are generalizations. We present detailed descriptions for the lm() command,
as it offers the most flexibility and best output options tailored