Biostatistics Study NotesFrom concepts and derivations to interpretation

CHAPTER 07 · TOPIC 06

Multiple Regression

Interpret conditional coefficients, overall and individual tests, categorical predictors, confounding adjustment, and model diagnostics.

On this page
  1. Interpreting Multiple Regression Coefficients
  2. Decomposing Variation in Y
  3. Overall F test
  4. Tests for Individual Coefficients
  5. Relationship between Categorical Predictors and ANOVA
  6. Coding of dummy variables
  7. Why Include Confounders in the Model?
  8. Crude, Partially Adjusted, and Fully Adjusted Models
  9. Model Assumptions and Diagnostics
  10. Analysis and Reporting Workflow

Multiple regression analysis puts multiple explanatory variables into the same linear model and estimates the conditional association of each variable, holding other variables constant. Used for prediction, confounding adjustment, and simultaneous comparison of multiple factors.

population modelYi=β0+β1X1i++βpXpi+εiY_i=\beta_0+\beta_1X_{1i}+\cdots+\beta_pX_{pi}+\varepsilon_i
sample prediction formulaY^i=b0+b1X1i++bpXpi\hat Y_i=b_0+b_1X_{1i}+\cdots+b_pX_{pi}

Interpreting Multiple Regression Coefficients#

E(Weight)=β0+β1(Age)+β2(Female)+β3(Height)E(\text{Weight})=\beta_0+\beta_1(\text{Age})+\beta_2(\text{Female})+\beta_3(\text{Height})

β₁ is the average weight difference associated with a 1 unit increase in age when comparing subjects of the same gender and height. β₂ is the average difference between women and the reference gender, holding age and height constant. The important difference from simple regression is the conditional interpretation of ``holding other things constant''.

Decomposing Variation in Y#

Deviation decompositionYiYˉ=(Y^iYˉ)+(YiY^i)Y_i-\bar Y=(\hat Y_i-\bar Y)+(Y_i-\hat Y_i)
total sum of squaresSST=(YiYˉ)2SS_T=\sum(Y_i-\bar Y)^2
regression sum of squaresSSR=(Y^iYˉ)2SS_R=\sum(\hat Y_i-\bar Y)^2
error sum of squaresSSE=(YiY^i)2SS_E=\sum(Y_i-\hat Y_i)^2
DecompositionSST=SSR+SSESS_T=SS_R+SS_E

Overall F test#

H0:β1=β2==βp=0H1:At least one βj0H_0:\beta_1=\beta_2=\cdots=\beta_p=0\qquad H_1:\text{At least one }\beta_j\ne0
source of variationsum of squaresdegrees of freedommean square
regressionSSRpSSR/p
errorSSEn−p−1SSE/(n−p−1)
totalSSTn−1
regression mean squareMSR=SSRpMS_R=\frac{SS_R}{p}
error mean squareMSE=SSEnp1MS_E=\frac{SS_E}{n-p-1}
F-statisticF=SSR/pSSE/(np1)F=\frac{SS_R/p}{SS_E/(n-p-1)}
H₀bottomFFp,np1F\sim F_{p,n-p-1}

Tests for Individual Coefficients#

individual hypothesisH0:βj=0H1:βj0H_0:\beta_j=0\qquad H_1:\beta_j\ne0
t-statistict=bjSE(bj),df=np1t=\frac{b_j}{SE(b_j)},\qquad df=n-p-1

Even if the overall F is significant, it does not necessarily mean that all coefficients are significant, and even if the individual t is not significant, it may be useful as a group of variables. For joint hypotheses with multiple coefficients, partial F tests and Wald tests are used.

Relationship between Categorical Predictors and ANOVA#

dummy variables for J groupsp=J1p=J-1
error degrees of freedomnp1=nJn-p-1=n-J

A factor with J levels is represented by J−1 dummy variables, and one level is used as the reference group. The overall F test for a factor-only regression model is the same as a one-way ANOVA.

Coding of dummy variables#

groupX₁X₂average
reference group00β₀
group 210β₀+β₁
group 301β₀+β₂
E(Y)=β0+β1X1+β2X2E(Y)=\beta_0+\beta_1X_1+\beta_2X_2

β1 and β2 are the differences from the reference group, respectively. Use appropriate contrasts for comparisons between different groups and overall effects, and consider multiplicity.

Why Include Confounders in the Model?#

unadjustedE(Vision)=β0+β1(Wealth)E(\text{Vision})=\beta_0+\beta_1(\text{Wealth})
age adjustmentE(Vision)=β0+β1(Wealth)+β2(Age)E(\text{Vision})=\beta_0+\beta_1(\text{Wealth})+\beta_2(\text{Age})

Unadjusted coefficients can be confounded if age is related to both wealth and vision. β₁ with age is the conditional association at the same age. However, we also check linearity, interactions, measurement error, and overlap.

Crude, Partially Adjusted, and Fully Adjusted Models#

ModelPurpose
CrudeUnadjusted association between exposure and outcome
Partially adjustedAdd key prespecified confounders and examine changes in the coefficient
Fully adjustedInclude variables and functional forms specified by the causal framework and analysis plan

Model Assumptions and Diagnostics#

  • Mean structure is appropriate for each continuous variable (nonlinear terms if necessary)
  • Observation and error are independent
  • Residual variance is approximately constant
  • Residuals are generally normal in small sample inference
  • Avoid severe multicollinearity; examine the VIF and condition number
  • Assess uncertainty in influence points, missing data, extrapolation, and model selection

Analysis and Reporting Workflow#

  1. Predefine research questions, estimation targets, and variable selection
  2. Check distribution, missingness, correlation, and encoding
  3. Specify linearity and interactions in the form required for research
  4. Estimate overall F, coefficients, 95% confidence intervals, p-values, R² and adjusted R²
  5. Diagnose residuals, multicollinearity, influence points, and predictive performance
  6. Specify unadjusted/adjusted results, units, reference groups, and limits