Skip to main content

Simple Linear Regression: Do Tall Fathers Have Tall Sons?

Simple linear regression in R with lm(), on the family heights that Francis Galton collected in the 1880s: the least-squares line by hand, slope and correlation, regression to the mean, standard errors, t and F tests, confidence against prediction intervals, checking the assumptions, sons who share a father (cluster-robust standard errors) and APA reporting.

The question: the data that gave regression its name

In the 1880s Francis Galton offered prizes to families who would send him their measurements. He wanted to know how height passes from parents to children. One result puzzled him: very tall parents had tall children, but not as tall as themselves; very short parents had short children, but not as short. Children “regressed” towards the average. He called it regression towards mediocrity (Galton, 1886), and the name stuck to the method.

This page asks his question with his data: how much of a father’s extra height does his son get?

Simple linear regression answers with a straight line: one outcome \(y\) (the son’s height), one predictor \(x\) (the father’s height), and a line that goes through the cloud of points as closely as possible. All the other regressions on this site are extensions of it, so this page goes slowly through every number that R prints.

Code
library(ggplot2)
library(sandwich)   # vcovCL(): standard errors for sons who share a father
library(lmtest)     # coeftest(), coefci(): tests and intervals with those standard errors

line_colours <- c("regression line" = "#2a78d6", "son = father" = "#eb6834")

# number formats for the text
f1   <- function(x) formatC(x, format = "f", digits = 1, big.mark = ",")
f2   <- function(x) formatC(x, format = "f", digits = 2, big.mark = ",")
f3   <- function(x) formatC(x, format = "f", digits = 3, big.mark = ",")
# no leading zero
nz <- function(x, d = 2) sub("^(-?)0", "\\1", formatC(x, format = "f", digits = d))
pval <- function(p) if (p < .001) "< .001" else paste("=", nz(p, 3))

1. The data

Galton’s notebooks were transcribed by James Hanley (2004). The table is in the R package HistData, and as a CSV file in the Rdatasets collection: one row per grown-up child.

Code
url <- "https://vincentarelbundock.github.io/Rdatasets/csv/HistData/GaltonFamilies.csv"
galton <- read.csv(url)
head(galton[, c("family", "father", "mother", "gender", "childHeight")], 4)
  family father mother gender childHeight
1    001   78.5     67   male        73.2
2    001   78.5     67 female        69.2
3    001   78.5     67 female        69.0
4    001   78.5     67 female        69.0

Heights are in inches (1 inch = 2.54 cm), most of them rounded to the nearest half inch or inch. We keep the sons, one row each:

Code
sons <- subset(galton, gender == "male", select = c(family, father, childHeight))
names(sons)[3] <- "son"
# one row per couple
parents <- unique(subset(galton, gender == "male", select = c(family, father, mother)))
nrow(sons)
[1] 481
Code
length(unique(sons$family))   # how many fathers
[1] 179
Code
summary(sons[, c("father", "son")])
     father           son       
 Min.   :62.00   Min.   :60.00  
 1st Qu.:68.00   1st Qu.:67.50  
 Median :69.00   Median :69.20  
 Mean   :69.14   Mean   :69.23  
 3rd Qu.:70.50   3rd Qu.:71.00  
 Max.   :78.50   Max.   :79.00  

There are 481 sons of 179 fathers. Fathers average 69.1 inches (175.6 cm) and sons 69.2 (175.9 cm): the two generations are equally tall. A father with several sons appears several times, a point to which section 6 returns.


2. Look at the data

Code
ggplot(sons, aes(father, son)) +
  geom_abline(
    aes(intercept = 0, slope = 1, colour = "son = father"),
    linewidth = 0.8,
    linetype = "dashed"
  ) +
  geom_point(
    position = position_jitter(width = 0.1, height = 0.1, seed = 1),
    alpha = 0.4,
    colour = "grey30",
    size = 1.5
  ) +
  geom_smooth(aes(colour = "regression line"), method = "lm", se = FALSE, linewidth = 1) +
  scale_colour_manual(values = line_colours, name = NULL) +
  coord_fixed(xlim = c(61, 79), ylim = c(59, 80)) +
  labs(
    title = "Sons against fathers",
    x = "father's height (inches)",
    y = "son's height (inches)"
  ) +
  theme_bw() +
  theme(legend.position = "bottom")

Plot: 2. Look at the data

The cloud rises: taller fathers have taller sons. (The points are nudged a little, because the rounding puts many of them on the same spot.) If every son were as tall as his father, the points would lie along the dashed line. They do not. The regression line is flatter: on the right it lies below the dashed line, on the left above it. That is what Galton saw:

Code
tallest  <- sons$father >= 73
shortest <- sons$father <= 66
tails <- data.frame(group       = c("fathers of 73 inches or more", "fathers of 66 inches or less"),
                    n           = c(sum(tallest), sum(shortest)),
                    mean_father = c(mean(sons$father[tallest]), mean(sons$father[shortest])),
                    mean_son    = c(mean(sons$son[tallest]),    mean(sons$son[shortest])))
tails
                         group  n mean_father mean_son
1 fathers of 73 inches or more 29    73.98276 71.01034
2 fathers of 66 inches or less 63    65.31746 67.56825

The tallest fathers are on average 4.8 inches above the average father, but their sons are only 1.8 inches above the average son. The shortest fathers are 3.8 inches below; their sons, 1.7.


3. The model step by step, with formulas

Step 1: a line plus scatter

\[y_i = \beta_0 + \beta_1 x_i + \varepsilon_i\]

  • \(\beta_1\), the slope: how many inches taller, on average, are the sons of fathers who are one inch taller.
  • \(\beta_0\), the intercept: the average son of a father of height 0. Nobody has that height, so here it only fixes how high the line sits.
  • \(\varepsilon_i\), the error: how far son \(i\) is from the line. The mother, the food, the illnesses of childhood and luck are all in there.

Step 2: the least-squares line

Any line leaves residuals, \(e_i = y_i - (b_0 + b_1 x_i)\), the vertical distances from the points to the line. The least-squares line makes \(\sum_i e_i^2\) as small as possible. Setting the two derivatives of this sum to zero gives

\[b_1 = \frac{\sum_i (x_i - \bar x)(y_i - \bar y)}{\sum_i (x_i - \bar x)^2} = \frac{\text{cov}(x, y)}{\text{var}(x)}, \qquad b_0 = \bar y - b_1 \bar x\]

The second formula says that the line goes through the point of the two means, \((\bar x, \bar y)\).

Code
x <- sons$father
y <- sons$son
n <- length(y)

b1 <- sum((x - mean(x)) * (y - mean(y))) / sum((x - mean(x))^2)
b0 <- mean(y) - b1 * mean(x)
c(b0 = b0, b1 = b1)
        b0         b1 
38.3625810  0.4465226 

Step 3: the slope is a correlation in disguise

The correlation is the covariance divided by both standard deviations, and the slope divides by the variance of \(x\) only. So

\[b_1 = r \,\frac{s_y}{s_x}\]

In standard deviations, the rule is even shorter: a father who is 1 SD above the mean has sons who are, on average, \(r\) SDs above theirs.

Code
r <- cor(x, y)
c(r = r, s_x = sd(x), s_y = sd(y), slope = r * sd(y) / sd(x))
        r       s_x       s_y     slope 
0.3923835 2.3057667 2.6239049 0.4465226 

Step 4: why there is always regression to the mean

A correlation is never larger than 1, and in real data it is smaller. So a father 2 SDs above the mean has sons about \(2r\) = 0.78 SDs above it, closer to the mean. No force pulls the sons back. A very tall father is usually tall for two reasons, the genes he passes on and other causes that he does not (good food, luck, an error in the measurement). His sons inherit the first part and get their own share of the second, which is average on average.

The same holds in the other direction: very tall sons have fathers who are less tall than they are. Heights do not shrink to the mean from generation to generation; the spread of the sons (\(s\) = 2.62) is not smaller than that of the fathers (\(s\) = 2.31).

Step 5: how sure are we? The standard error of the slope

A different sample of families would give a different slope. If the errors are independent and have the same variance \(\sigma^2\), the spread of the slope from sample to sample is

\[SE(b_1) = \frac{s}{\sqrt{\sum_i (x_i - \bar x)^2}}, \qquad s = \sqrt{\frac{\sum_i e_i^2}{n - 2}}\]

\(s\) is the residual standard error, the typical distance of a son from the line; \(n - 2\) because two numbers, \(b_0\) and \(b_1\), were estimated. The slope is more precise when the points lie close to the line, when there are many of them, and when the fathers differ a lot in height. Then

\[t = \frac{b_1}{SE(b_1)} \quad\text{with } n - 2 \text{ degrees of freedom}, \qquad 95\%\ \text{CI} = b_1 \pm t_{0.975}\, SE(b_1)\]

Code
e     <- y - (b0 + b1 * x)                         # residuals
s     <- sqrt(sum(e^2) / (n - 2))                  # residual standard error
se_b1 <- s / sqrt(sum((x - mean(x))^2))
t_b1  <- b1 / se_b1
p_b1  <- 2 * pt(abs(t_b1), df = n - 2, lower.tail = FALSE)
ci_b1 <- b1 + c(-1, 1) * qt(0.975, n - 2) * se_b1
c(s = s, SE = se_b1, t = t_b1, p = p_b1, lower = ci_b1[1], upper = ci_b1[2])
           s           SE            t            p        lower        upper 
2.415990e+00 4.782546e-02 9.336504e+00 3.737109e-19 3.525490e-01 5.404962e-01 

Step 6: how much is explained? R²

The total variation of the sons splits in two, the part that the line follows and the part left around it:

\[\underbrace{\sum_i (y_i - \bar y)^2}_{\text{total}} = \underbrace{\sum_i (\hat y_i - \bar y)^2}_{\text{explained}} + \underbrace{\sum_i e_i^2}_{\text{left over}}, \qquad R^2 = \frac{\text{explained}}{\text{total}}\]

With one predictor, \(R^2 = r^2\): here \(0.392^2\) = 0.154.


4. Fitting the model and reading the output

Code
fit <- lm(son ~ father, data = sons)
summary(fit)

Call:
lm(formula = son ~ father, data = sons)

Residuals:
    Min      1Q  Median      3Q     Max 
-9.3959 -1.5122  0.0413  1.6217  9.3808 

Coefficients:
            Estimate Std. Error t value Pr(>|t|)    
(Intercept) 38.36258    3.30837  11.596   <2e-16 ***
father       0.44652    0.04783   9.337   <2e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Residual standard error: 2.416 on 479 degrees of freedom
Multiple R-squared:  0.154, Adjusted R-squared:  0.1522 
F-statistic: 87.17 on 1 and 479 DF,  p-value: < 2.2e-16

Every number of section 3 is there. Part by part:

In the output Meaning Here
Residuals Five numbers of the \(e_i\); they should be roughly symmetric around 0 half of the sons are between -1.5 and +1.6 inches from the line
Estimate, father The slope \(b_1\) 0.447 inches of son for one inch of father
Estimate, (Intercept) \(b_0\), the line at \(x = 0\) 38.4 inches: no meaning by itself
Std. Error How uncertain the estimate is 0.048 for the slope
t value Estimate / Std. Error 9.34
Pr(>|t|) The chance of a \(t\) this far from 0 if the true slope were 0 far below .001
Residual standard error \(s\), the typical distance from the line 2.42 inches
Multiple R-squared \(R^2 = r^2\) 0.154
F-statistic The test of the whole model. With one predictor, \(F = t^2\) \(9.34^2\) = 87.2
Code
# the intercept becomes useful if we center the father's height
centred <- lm(son ~ I(father - mean(father)), data = sons)
round(coef(summary(centred)), 3)
                         Estimate Std. Error t value Pr(>|t|)
(Intercept)                69.234      0.110 628.489        0
I(father - mean(father))    0.447      0.048   9.337        0

The model with the centered predictor is the same line with the same slope. Its intercept, 69.23, is now the average height of the sons of an average father.

What the slope says about Galton’s question

A father who is one inch taller than another has sons who are 0.45 inches taller on average, 95% CI [0.35, 0.54]. So a son gets somewhat less than half of his father’s extra height. Two hypotheses are tested by this one interval:

  • No link (\(\beta_1 = 0\)), the test that R prints: rejected, the interval is far from 0.
  • Sons equal to their fathers on average, whatever the father’s height (\(\beta_1 = 1\)): also rejected, the interval is far from 1. R does not print this test, but the t is easy: \((b_1 - 1)/SE = -11.6\).

Always ask which value of the slope is the interesting one. It is not always zero.

Two regressions, not one

Predicting fathers from sons is a different regression, and not the first line turned around:

Code
reverse <- lm(father ~ son, data = sons)
c(
  son_on_father = b1,
  father_on_son = coef(reverse)[["son"]],
  turned_around = 1 / coef(reverse)[["son"]]
)
son_on_father father_on_son turned_around 
    0.4465226     0.3448085     2.9001602 
Code
c(product_of_slopes = b1 * coef(reverse)[["son"]], r_squared = r^2)
product_of_slopes         r_squared 
        0.1539648         0.1539648 
Code
two <- rbind(
  data.frame(line = "son predicted from father", intercept = b0, slope = b1),
  data.frame(
    line = "father predicted from son",
    intercept = -coef(reverse)[[1]] / coef(reverse)[[2]],
    slope = 1 / coef(reverse)[[2]]
  )
)

ggplot(sons, aes(father, son)) +
  geom_point(
    position = position_jitter(width = 0.1, height = 0.1, seed = 1),
    alpha = 0.25,
    colour = "grey40",
    size = 1.2
  ) +
  geom_abline(data = two, aes(intercept = intercept, slope = slope, colour = line), linewidth = 1) +
  annotate("point", x = mean(x), y = mean(y), size = 3) +
  scale_colour_manual(
    values = c("son predicted from father" = "#2a78d6", "father predicted from son" = "#1baf7a"),
    name = NULL
  ) +
  coord_fixed(xlim = c(61, 79), ylim = c(59, 80)) +
  labs(
    title = "Two regression lines through the same cloud",
    subtitle = "They cross at the two means (black point)",
    x = "father's height (inches)",
    y = "son's height (inches)"
  ) +
  theme_bw() +
  theme(legend.position = "bottom")

Two lines chart – Two regressions, not one

Least squares measures vertical distances, the errors in what we predict. Swap the roles and the errors to make small are the horizontal ones, so the line changes. The product of the two slopes is \(r^2\), and the lines coincide only when \(r = \pm 1\). The choice of \(y\) is the choice of what to predict. When neither variable is the outcome, because both measure the same thing with error, use Deming regression.


5. Predictions: for the average son, or for one son?

How tall will the sons of a father of 74 inches (188.0 cm) be? There are two questions in this one:

  1. How tall are such sons on average? Only the line is uncertain: a confidence interval.
  2. How tall will one such son be? The line is uncertain, and the son scatters around it: a prediction interval.

\[SE_{\text{mean}} = s\sqrt{\frac{1}{n} + \frac{(x_0 - \bar x)^2}{\sum (x_i - \bar x)^2}}, \qquad SE_{\text{one}} = s\sqrt{1 + \frac{1}{n} + \frac{(x_0 - \bar x)^2}{\sum (x_i - \bar x)^2}}\]

Code
new <- data.frame(father = 74)
conf <- predict(fit, new, interval = "confidence")
pred <- predict(fit, new, interval = "prediction")
rbind(average_son = conf, one_son = pred)
       fit      lwr      upr
1 71.40525 70.89964 71.91086
1 71.40525 66.63116 76.17935
Code
# the same by hand, for the standard errors
h0 <- 1 / n + (74 - mean(x))^2 / sum((x - mean(x))^2)
c(se_mean = s * sqrt(h0), se_one = s * sqrt(1 + h0))
  se_mean    se_one 
0.2573177 2.4296545 

The average of such sons is 71.4 inches, 95% CI [70.9, 71.9]. One such son will be between 66.6 and 76.2 inches with 95% probability: a range of 24.3 cm. More families would shrink the first interval towards nothing. They would not shrink the second below about \(\pm 2s\).

Code
grid  <- data.frame(father = seq(62, 78.5, by = 0.25))
bands <- rbind(
  cbind(
    grid,
    predict(fit, grid, interval = "prediction"),
    band = "95% prediction interval: one son"
  ),
  cbind(
    grid,
    predict(fit, grid, interval = "confidence"),
    band = "95% confidence interval: the average son"
  )
)
bands$band <- factor(bands$band, levels = unique(bands$band))

ggplot(sons, aes(father, son)) +
  geom_ribbon(data = bands, aes(y = fit, ymin = lwr, ymax = upr, fill = band), alpha = 0.45) +
  geom_point(
    position = position_jitter(width = 0.1, height = 0.1, seed = 1),
    alpha = 0.35,
    colour = "grey30",
    size = 1.2
  ) +
  geom_line(data = cbind(grid, son = predict(fit, grid)), colour = "#2a78d6", linewidth = 1) +
  scale_fill_manual(values = c("#f3d19c", "#2a78d6"), name = NULL) +
  labs(title = "The line is known well; one son is not",
       x = "father's height (inches)", y = "son's height (inches)") +
  theme_bw() + theme(legend.position = "bottom")

Bands – 5. Predictions: for the average son, or for one son?

Code
inside <- predict(fit, interval = "prediction")
share_inside <- mean(sons$son >= inside[, "lwr"] & sons$son <= inside[, "upr"])

Of the sons in the data, 95.8% lie inside the prediction band, close to the 95% it promises. The line is only for fathers between 62 and 78.5 inches: the data say nothing beyond that.


6. Checking the assumptions

The estimates need the line to be the right shape. The standard errors, t tests and intervals also need errors that are independent and equally spread. The prediction interval needs them to be roughly normal too. In order of importance:

Code
check <- data.frame(fitted = fitted(fit), resid = resid(fit), std = rstandard(fit))
check$q <- qqnorm(check$std, plot.it = FALSE)$x

pa <- ggplot(check, aes(fitted, resid)) +
  geom_hline(yintercept = 0, colour = "grey60") +
  geom_point(
    position = position_jitter(width = 0.05, height = 0.05, seed = 1),
    alpha = 0.4,
    colour = "grey30"
  ) +
  geom_smooth(method = "loess", formula = y ~ x, se = FALSE, colour = "#eb6834", linewidth = 0.9) +
  labs(
    title = "Residuals against fitted values",
    x = "fitted height (inches)",
    y = "residual (inches)"
  ) +
  theme_bw()
pb <- ggplot(check, aes(q, std)) +
  geom_abline(colour = "grey60") +
  geom_point(alpha = 0.5, colour = "#2a78d6") +
  labs(title = "Normal Q-Q plot", x = "normal quantile", y = "standardised residual") +
  theme_bw()
patchwork::wrap_plots(pa, pb, ncol = 1)

Diagnostics – 6. Checking the assumptions

  • Linearity. The orange curve stays near 0, with no U and no wave. The RESET test adds powers of the fitted values to the model and asks whether they help; they do not, p = .817. If there were a bend, see polynomial regression.
  • Equal spread. The band is equally wide from left to right. The Breusch–Pagan test finds nothing, p = .573. If the spread changed, see weighted least squares.
  • Normal errors. The points follow the line in the Q-Q plot, with a few sons further out than a normal distribution would put them. With 481 rows this matters little for the slope, but the prediction interval depends on it.
  • Influence. The largest Cook’s distance is 0.049, far below 1: no son moves the line by himself. If some did, see robust regression.
  • Independence. This one fails, and no plot above shows it.

Brothers are not independent

The 481 sons have only 179 fathers. Brothers share a mother, a kitchen and a childhood, so if one is taller than the line says, his brother probably is too:

Code
sons$resid <- resid(fit)
families   <- split(sons$resid, sons$family)
pairs      <- do.call(rbind, lapply(families[lengths(families) > 1], function(v) t(combn(v, 2))))
both_ways  <- rbind(pairs, pairs[, 2:1])              # each pair counted in both orders
brother_r  <- cor(both_ways)[1, 2]
c(pairs_of_brothers = nrow(pairs), correlation = brother_r)
pairs_of_brothers       correlation 
      605.0000000         0.2899052 

The residuals of two brothers correlate at 0.29. So 481 sons carry less information than 481 unrelated men, and the usual standard error is too small. Cluster-robust standard errors keep the line and allow any correlation within a family:

Code
v_cl    <- vcovCL(fit, cluster = ~ family)
robust  <- coeftest(fit, vcov = v_cl)
ci_cl   <- coefci(fit, vcov. = v_cl)
rbind(usual          = coef(summary(fit))["father", ],
      cluster_robust = robust["father", ])
                Estimate Std. Error  t value     Pr(>|t|)
usual          0.4465226 0.04782546 9.336504 3.737109e-19
cluster_robust 0.4465226 0.05546032 8.051209 6.537981e-15

The standard error of the slope goes from 0.048 to 0.055, 1.16 times as large, and the 95% CI from [0.35, 0.54] to [0.34, 0.56]. The conclusions do not change here, but the honest interval is the wider one. A model with a random intercept for each family is the other way (see multilevel models).


7. Things to keep in mind

  • A slope is a difference between people, not an effect. Taller fathers differ from shorter ones in other ways too: their wives are a little taller, for example (the heights of the parents correlate at 0.11), and their families may have been better fed. The slope is what we should expect of a son when we know his father’s height, not what would happen if a father grew.
  • One parent is half of the story. Adding the mother’s height is a job for multiple regression (see hierarchical regression).
  • A measurement error in \(x\) flattens the slope. Families reported their own measurements, and most are rounded. Noise in \(x\) biases the slope towards 0 (attenuation), so part of the gap between 0.45 and 1 may be error; noise in \(y\) only widens the scatter.
  • Regression to the mean explains many “effects”. Choose the worst schools, the sickest patients or the best athletes of one year, and the next year they will be closer to average, whatever was done to them in between (Barnett et al., 2005). Compare with a control group chosen in the same way.
  • \(R^2\) is not the quality of the model. It is low here (0.15) because much besides the father decides a son’s height, and the line is nevertheless right. A high \(R^2\) can come with a wrong model, as with the CO₂ record in polynomial regression.
  • The sample is not the population. Galton’s families answered an advertisement with prizes, in England in the 1880s.

8. Reporting the results in APA style

A report (APA 7th edition) needs the variables and their units, the slope with its uncertainty, the test, and \(R^2\). The numbers come from the R objects:

Code
fs <- summary(fit)$fstatistic
apa_table <- data.frame(
  Predictor = c("Intercept", "Father's height (inches)"),
  b   = f2(coef(fit)),
  SE  = f3(robust[, 2]),
  CI  = paste0("[", f2(ci_cl[, 1]), ", ", f2(ci_cl[, 2]), "]"),
  t   = f2(robust[, 3]),
  p   = sapply(robust[, 4], function(p) sub("^= ", "", pval(p))),
  beta = c("—", nz(r, 2)))

Method (data analysis):

We analyzed the heights of 481 adult sons of 179 fathers collected by Galton (1886) and transcribed by Hanley (2004). We regressed the son’s height on the father’s height, both in inches, by ordinary least squares. Because 302 of the sons had a brother earlier in the file, we report cluster-robust standard errors with families as clusters (Zeileis et al., 2020). Analyses were conducted in R (Version 4.6.2; R Core Team, 2026).

Results:

Sons (M = 69.23, SD = 2.62) were as tall on average as their fathers (M = 69.14, SD = 2.31). Father’s height predicted son’s height, b = 0.45, 95% CI [0.34, 0.56], t(479) = 8.05, p < .001, R² = .15 (Table 1). For each additional inch of the father, sons were 0.45 inches taller on average. The slope was also below 1, showing regression to the mean: the sons of fathers 2 SD above the mean were expected to be 0.78 SD above it.

Table 1

Regression of Son’s Height on Father’s Height

Predictor b SE 95% CI t p β
Intercept 38.36 3.847 [30.80, 45.92] 9.97 < .001 —
Father’s height (inches) 0.45 0.055 [0.34, 0.56] 8.05 < .001 .39

Note. N = 481 sons of 179 fathers. Standard errors, confidence intervals and tests are cluster-robust (by family). R² = .15, residual SD = 2.42 inches.

Points to remember:

  • Give b with its units, its confidence interval, the test with its degrees of freedom, and R².
  • Say which value the slope was tested against, if it was not zero.
  • The standardized slope β is the correlation when there is one predictor. Report it as well if readers will compare studies.
  • Say what one row is, and whether rows belong together.
  • Do not write “effect” or “leads to” for a difference between people who were not assigned to anything.

9. Summary

When A continuous outcome and one predictor, related by a straight line
The model \(y = \beta_0 + \beta_1 x + \varepsilon\)
The estimates \(b_1 = \text{cov}(x, y)/\text{var}(x) = r\, s_y / s_x\); the line goes through \((\bar x, \bar y)\)
How (R) fit <- lm(y ~ x, data = d), then summary(), confint(), predict()
Reading it The slope is the average difference in \(y\) between units that differ by 1 in \(x\)
Regression to the mean Extreme \(x\) go with less extreme \(y\) whenever \(|r| < 1\)
Prediction interval = "confidence" for the average, interval = "prediction" for one case
Checks Residuals against fitted values, Q-Q plot, Cook’s distance, and how the rows were collected
If it fails Bend: polynomial. Unequal spread: WLS. Outliers: robust. Dependence: cluster-robust errors or multilevel models

References

Barnett, A. G., van der Pols, J. C., & Dobson, A. J. (2005). Regression to the mean: What it is and how to deal with it. International Journal of Epidemiology, 34(1), 215–220. https://doi.org/10.1093/ije/dyh299

Galton, F. (1886). Regression towards mediocrity in hereditary stature. The Journal of the Anthropological Institute of Great Britain and Ireland, 15, 246–263. https://doi.org/10.2307/2841583

Hanley, J. A. (2004). “Transmuting” women into men: Galton’s family data on human stature. The American Statistician, 58(3), 237–243. https://doi.org/10.1198/000313004X1558

Zeileis, A., Köll, S., & Graham, N. (2020). Various versatile variances: An object-oriented implementation of clustered covariances in R. Journal of Statistical Software, 95(1), 1–36. https://doi.org/10.18637/jss.v095.i01