We test whether body mass truly predicts metabolic rate:
\[ H_0: \beta_1 = 0 \qquad \text{vs.} \qquad H_a: \beta_1 \neq 0 \]
with test statistic
\[ t = \frac{\hat\beta_1 - 0}{SE(\hat\beta_1)} \ \sim\ t_{n-2} \ \text{ under } H_0 \]
summary(model)$coefficients
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 4.2582273 0.029915293 142.3428 1.693950e-75
## log(body_mass_kg) 0.7493465 0.006659608 112.5211 1.347686e-69
- The p-value for \(\hat\beta_1\) is essentially 0, so we reject \(H_0\)
- Strong evidence that body mass is a statistically significant predictor of BMR
A more biologically interesting question: is the scaling exponent consistent with Kleiber’s theoretical value of \(0.75\)?
\[ H_0: \beta_1 = 0.75 \qquad \text{vs.} \qquad H_a: \beta_1 \neq 0.75 \]
beta1_hat <- coef(model)[2]
se_beta1 <- summary(model)$coefficients[2, "Std. Error"]
t_stat_kleiber <- (beta1_hat - 0.75) / se_beta1
p_value_kleiber <- 2 * pt(-abs(t_stat_kleiber), df = model$df.residual)
c(t_stat = t_stat_kleiber, p_value = p_value_kleiber)
## t_stat.log(body_mass_kg) p_value.log(body_mass_kg)
## -0.09813101 0.92216661
- A large p-value here would mean our estimate is consistent with the 0.75 exponent a very different (and more useful) conclusion than testing against zero