2027 Public Health PhD Research: Separating Mediation From Effect Modification

Imed Bouchrika, PhD

by Imed Bouchrika, PhD

Co-Founder and Chief Data Scientist

What is the difference between mediation and effect modification in public health research?

Mediation concerns a pathway: exposure influences an intermediate variable, which in turn influences an outcome. Effect modification concerns differences in an exposure's effect across levels of another variable. These are different causal questions, not competing labels for any variable that appears in a regression.

Consider an illustrative study of a housing intervention and childhood asthma symptoms. Indoor air quality might be a mediator if the intervention changes air quality and that change affects symptoms. Baseline building condition might be an effect modifier if the intervention's effect on symptoms differs between buildings with different starting conditions. The researcher must specify when each was measured and what intervention and comparison the effect refers to.

The table separates the questions a dissertation proposal would need to answer. It also shows why the same statistical adjustment cannot serve both purposes without a defined estimand.

Research featureMediationEffect modification
Core questionThrough which specified pathway might an effect operate?Does the effect differ across specified groups or conditions?
Variable's usual timingAfter the exposure and before the outcomeOften measured before the exposure, especially for decisions about targeting an intervention
Typical resultAn estimated direct or indirect effect, under stated assumptionsGroup-specific effects or an effect contrast between groups
Common errorCalling attenuation after adjustment proof of a pathwayCalling any significant interaction a meaningful causal difference

Both analyses depend on the effect scale. Effects can differ across groups on a risk-difference scale without differing on a risk-ratio scale. Students choosing among specialization choices in public health graduate study should look beyond an epidemiology label to whether training covers causal estimands and interpretation on relevant scales.

How do public health PhD researchers identify mediation and effect modification?

Researchers begin with a public health decision, not a software command. For the housing example, one decision might be whether improving indoor air quality is a plausible route to better health; another might be whether the intervention should be adapted for buildings in different initial conditions.

A defensible identification plan makes the following choices before inspecting subgroup results:

  1. Define the target population, exposure or intervention, comparator, outcome, follow-up period, and effect scale.
  2. Draw a causal diagram that distinguishes pre-exposure confounders from variables caused by the exposure.
  3. For mediation, justify the proposed exposure-to-mediator-to-outcome sequence and assess confounding of each relevant relationship.
  4. For effect modification, prespecify the groups or conditions, estimate effects within them, and compare those effects with uncertainty intervals.
  5. Check whether measurement, missingness, sample size, and data-use permissions can support the planned analysis.

A modifier need not cause the outcome to be useful for describing heterogeneity. A mediator, by contrast, requires a credible intermediate role; measuring exposure, mediator, and outcome at one time point usually makes that sequence difficult to establish. A causal diagram can also reveal exposure-induced confounders of the mediator-outcome relationship, which invalidate some simple mediation approaches.

For an applicant still building basic study-design and statistics skills, short online public health degree options may be worth comparing with targeted methods courses. Neither is a substitute for supervised causal research, but either may clarify whether doctoral-level work is the right next step.

Which research methods and statistical techniques analyze mediation and effect modification?

For effect modification, researchers commonly estimate exposure effects within prespecified strata or fit a model with an exposure-by-modifier interaction. They should report the effects themselves - not only the interaction's p-value - and choose a measure that matches the decision, such as an absolute risk difference when planning services for a population.

For mediation, traditional regression approaches can be useful descriptively but often rely on restrictive assumptions, particularly when exposure and mediator interact. Counterfactual approaches define effects such as natural or interventional direct and indirect effects; techniques may include g-computation, inverse-probability weighting, or related estimators. The choice depends on the estimand, data structure, assumptions, and available expertise. Randomizing an exposure does not automatically remove mediator-outcome confounding.

Both questions require attention to selection, measurement error, missing data, model specification, and uncertainty. Repeated mediator and outcome measurements may call for longitudinal methods rather than one baseline-adjusted regression. In complex surveys, design weights and clustering can affect estimates and standard errors. Sensitivity analyses are particularly valuable for mediation because unmeasured mediator-outcome confounding can change a causal interpretation.

A research-oriented master's program with a strong thesis and advanced methods may be a more direct next step than a PhD for someone whose immediate goal is to learn these tools. When comparing that option, public health master's university award comparisons can inform affordability, but applicants still need to verify actual methods courses and supervised research opportunities.

What salaries and job outlook can public health PhD graduates expect?

There is no single PhD-specific salary or employment forecast for this research specialty. The US Bureau of Labor Statistics reports occupation-wide wages and projections for categories such as epidemiologists and statisticians; those categories include workers with different degrees, experience levels, employers, and responsibilities. A faculty position, government epidemiology role, and private-sector research position should not be valued using one occupational median.

For a sound comparison, consult the latest Bureau of Labor Statistics Occupational Outlook Handbook entry matching the tasks you want, note its wage reference year and projection period, and compare it with actual postings in your location. Then weigh prospective compensation against the written funding offer, time to completion, and the career you could pursue without a PhD. Public health master's cost and completion planning offers a useful alternative-pathway comparison, but neither degree's return should be inferred from occupation-wide wages alone.

Other Things You Should Know About Public Health

Can a variable be both a mediator and an effect modifier?

Yes. A variable could lie on one causal pathway and also alter another effect. Define each question separately, check its timing, and use methods appropriate to each estimand rather than assigning the variable one permanent label.

Can race be used as a mediator in a public health analysis?

Usually, researchers should instead specify the social or structural processes they mean to study, such as differential access to resources. Treating race itself as a manipulable biological mechanism can misstate the causal question and obscure racism's effects.

Does a statistically significant interaction justify targeting an intervention?

Not by itself. Examine group-specific absolute effects, precision, potential bias, feasibility, and community priorities. A small or poorly measured subgroup difference may not support a different policy.

Should a dissertation mediation or subgroup analysis be preregistered?

When feasible, documenting the question, effect scale, variables, and planned analyses before examining results helps distinguish confirmatory work from exploratory findings. Follow the study's applicable protocol, funder, and institutional requirements; clearly report later changes.