The basic form of a linear equation in point intercept form is as follows:
\(y = \beta_0 + \beta_1\cdot x + \varepsilon\)
The equation for residuals can be calculated as follows:
\(e_{i} = y_{i} - \hat{y}_{i}\)
Goal: Explore basic linear regression in R and determine the best indicator of fertility based on the “swiss” data set, primarily looking at Education (% education beyond primary school for draftees) and Agriculture (% of males involved in agriculture as occupation).