PUBH-310 · Lesson 2 of 12 · 20 min

Choosing a study design

▶ Video coming soon A video version of this lesson is on the way.

With the question written, the Brannock Valley team met to choose a design. Tomás arrived with a proposal: survey all current hospital staff, ask about their shift schedules and whether they had diabetes, and compare the two groups. Priya pointed out a problem at once. Staff who developed diabetes on nights might have asked to move to days, and some might have left the hospital altogether. A snapshot of current staff would count them in the wrong group, or miss them. Dr. Arkwright drew a decision tree on the whiteboard and said, “The design follows from the question and from the data we can get. Let’s walk the tree.”

PUBH-210 described the classic designs — ecological, cross-sectional, cohort, case-control and randomized trial — and how to calculate their measures. NURS-320 placed them in an evidence hierarchy. This lesson is about choosing among them, and about several hybrid and modern designs that epidemiologists use when the classic designs do not fit: nested case-control, case-cohort, case-crossover, self-controlled case series and target trial emulation.

The decision tree

Design choice can be organized as a few sequential questions, shown in Figure 1. What kind of question is it? If it is descriptive, a well-sampled cross-sectional survey or routinely collected surveillance or registry data usually suffice. If it is causal, can the investigator ethically and feasibly assign the exposure? If yes, a randomized trial gives the most protection against confounding. If not, the choice among observational designs depends mainly on how common the outcome is, how long it takes to develop, how the exposure varies over time and what data already exist.

A decision tree. Top box: what is the question? Left branch: describe burden, leading to cross-sectional survey or surveillance and registry data. Right branch: estimate an effect, leading to the question can the investigator assign the exposure ethically and feasibly. Yes leads to randomized controlled trial. No leads to is the outcome rare or slow to appear; rare leads to case-control or nested case-control, common leads to cohort, prospective or retrospective. A side note says: transient exposure with an acute outcome, consider a case-crossover design; if no trial is possible, emulate a target trial with observational data.
Figure 1. A simplified decision tree for choosing an epidemiological design.

The tree is a starting point, not an algorithm. Real choices also weigh cost, time, the quality of available records, the risk of particular biases and what previous studies have already shown. A sixth cross-sectional study adds little to a question already studied in good cohorts.

Matching design to question: a comparison

Table 1. Matching classic designs to the questions they answer best.
DesignBest suited toMain strengthsMain weaknesses
Cross-sectionalPrevalence; planning services; generating hypothesesQuick, cheap, representative if well sampledExposure and outcome measured at once, so temporality is unclear; survivors and stayers over-represented
Prospective cohortCommon outcomes; multiple outcomes of one exposure; exposures that change over timeClear temporality; exposure measured before outcome; absolute risksSlow and costly for rare or late outcomes; loss to follow-up
Retrospective (historical) cohortQuestions where good past records existFaster and cheaper than prospective; clear temporality if records were made before outcomesLimited to variables recorded for other purposes; confounders often missing
Case-controlRare outcomes; outcomes with long latency; outbreak investigationEfficient; many exposures studied at onceControl selection and recall bias; usually only odds ratios
Randomized trialInterventions that can be ethically assignedBalances measured and unmeasured confoundersCostly; selected participants; some exposures cannot be assigned

Hybrid designs that sample within a cohort

When a large cohort already exists but measuring an exposure is expensive, such as analysing stored blood samples or abstracting detailed work histories, investigators can measure the exposure on a sample instead of everyone. Two designs do this efficiently.

Nested case-control studies

In a nested case-control study, every person in the cohort who develops the outcome becomes a case. For each case, one or more controls are drawn at random from cohort members who are still at risk (have not yet developed the outcome) at the time the case occurred. This is called risk-set sampling or incidence density sampling. Because controls are matched on time, the odds ratio from this design estimates the incidence rate ratio directly, without needing the outcome to be rare. Exposure is measured only on cases and controls, often a few hundred people instead of tens of thousands, and because the exposure data (for example, banked blood) were collected before the outcome occurred, recall bias is avoided.

Case-cohort studies

In a case-cohort study, a random subcohort is drawn from the whole cohort at baseline, regardless of later outcome, and all cases arising in the full cohort are added. The same subcohort serves as the comparison group for every outcome, so one subcohort can support studies of diabetes, heart disease and cancer. The subcohort also provides direct estimates of risk factor distributions in the cohort. Analysis requires weighting methods that account for the sampling.

Worked problem

Why sample within a cohort?

A cohort of 30,000 hospital workers has stored blood from baseline. Over ten years, 600 develop type 2 diabetes. A laboratory assay for a circadian hormone marker costs 120 dollars per sample. Compare the cost of assaying everyone with a nested case-control study using four controls per case.

Show solution
  1. Assaying the full cohort: 30,000 × 120 = 3,600,000 dollars.
  2. Nested case-control: 600 cases + (4 × 600) controls = 3,000 samples.
  3. Cost: 3,000 × 120 = 360,000 dollars, one tenth of the full-cohort cost.
  4. Statistical efficiency relative to the full cohort with four controls per case is roughly 4 ÷ (4 + 1) = 80 percent for estimating the exposure effect.

Answer: The nested design costs about 360,000 dollars instead of 3.6 million, while retaining roughly 80 percent of the statistical efficiency. Adding controls beyond about four per case gains little efficiency.

Self-controlled designs

Some designs compare a person with themselves at different times, which removes confounding by any characteristic that is stable within a person, such as genes, sex, chronic health habits or socioeconomic position, whether measured or not.

The case-crossover design includes only cases. For each case, exposure in a short hazard period just before the outcome is compared with exposure in one or more control periods from the same person at other times. It suits transient exposures with acute, short-latency effects. Classic questions include whether heavy physical exertion triggers heart attacks, whether mobile phone use while driving triggers crashes, and whether days of high air pollution trigger asthma attendances. It does not suit exposures that change slowly, such as shift schedules over years, or outcomes that develop over a long time, such as diabetes.

The self-controlled case series also uses only cases, comparing the incidence of an outcome during defined risk windows after an exposure (often a vaccination or medication start) with the incidence at other times in the same people. It has been central to vaccine safety research, including studies of febrile seizures after measles-containing vaccines and of rare adverse events after COVID-19 vaccines. Its key assumption is that the outcome does not itself change the probability of later exposure; if it does, the method needs adjustment.

Ecological designs, revisited

PUBH-210 warned about the ecological fallacy. Ecological designs nonetheless have a proper place in methods work: for exposures that genuinely operate at the group level, such as laws, taxes, fluoridation or air quality; and in natural experiments, where a policy changes in one place but not another. An interrupted time series compares the level and trend of an outcome before and after a policy, and a difference-in-differences analysis compares the change in a place that adopted a policy with the change in a similar place that did not. These quasi-experimental designs are workhorses of public health policy evaluation and are covered further in program evaluation courses.

Target trial emulation

Many causal questions cannot be answered with a trial: nobody will randomize nurses to eight years of night work. Yet observational analyses often fail because they compare groups that are not comparable at a defined start point. Target trial emulation is a framework, developed by Miguel Hernán, James Robins and colleagues, for designing observational analyses to mimic the trial that would answer the question. The investigator writes the protocol of the target trial, then explains how each element will be emulated with observational data.

Table 2. Writing the target trial protocol and its observational emulation for the Brannock study.
Protocol elementTarget trial (ideal)Emulation with hospital payroll and health records
EligibilityEmployees aged 25 to 60, no diabetes, starting a new scheduleSame criteria applied at each new schedule assignment in the records
Treatment strategiesRotating nights versus days onlySchedule recorded in payroll at the start of follow-up
AssignmentRandomAssumed exchangeable after adjustment for age, job type and other baseline confounders
Start of follow-up (time zero)RandomizationDate the eligibility criteria are met and the schedule is assigned
OutcomeIncident type 2 diabetesNew diagnosis or HbA1c of 6.5 percent or higher in records
Causal contrastIntention to treat or per protocolObservational analogue of either, stated in advance

The most important benefit of emulation is that it aligns three things at time zero: when eligibility is met, when the exposure strategy is assigned and when follow-up starts. Misaligning them creates biases that no amount of statistical adjustment can fix. The best known is immortal time bias.

Two horizontal timelines starting at a dashed line labelled time zero, eligibility. The top timeline is one solid bar labelled: correct, follow-up starts at eligibility for everyone and exposure is assigned at time zero. The bottom timeline has a faded red segment from 0 to 1.5 years, labelled immortal time, must survive to be called exposed, then a green segment after a marker labelled first prescription filled; its label reads: wrong, person counted as exposed from eligibility, so early deaths can only happen in the comparison group.
Figure 2. Immortal time bias arises when exposure is defined by something that happens after follow-up begins.

Immortal time arises when people are classified as exposed on the basis of something that happens after follow-up starts. Suppose a study of a medication follows patients from hospital discharge and classifies anyone who ever fills a prescription as a “user.” A patient who fills a first prescription six months after discharge must have survived those six months to become a user. That event-free time is credited to the exposed group, making the drug look protective even if it does nothing. Several famous observational findings, including apparent survival benefits of statins in some cancers and of winning an Academy Award, were later shown to be partly or wholly due to immortal time. Emulating a target trial, in which everyone is assigned at time zero, prevents it.

Prevalent users versus new users

A related problem is comparing prevalent users, people already taking a drug or already working nights for years, with non-users. Prevalent users are survivors of the early period of exposure: those who had side effects, disliked it or became ill have often stopped. In the Brannock study, long-serving night workers are the people who tolerated nights; those who developed problems may have moved to days. This is a form of the healthy worker survivor effect. The new-user design (or, for jobs, the incident-exposure design) includes only people starting the exposure, which matches what a trial would do. The team decided to include staff starting a new schedule assignment during the study window, accepting a smaller sample in exchange for a cleaner comparison.

Back to Brannock: the decision

Walking the tree, the team noted that their question was causal, that randomization was neither ethical nor feasible over eight years, and that the outcome was not rare among working adults followed for eight years, but was slow to develop. Payroll records going back ten years and annual occupational health checks including HbA1c were available at all three hospitals. These facts pointed to a retrospective cohort study of new schedule assignments, designed as an emulation of a target trial, with incident diabetes ascertained from occupational health and linked physician billing records. Because detailed sleep and diet information did not exist in records, the team planned a nested case-control substudy: for each incident case, four risk-set-sampled controls would be interviewed about diet and second jobs, an efficient way to collect expensive confounder data.

Tomás’s original cross-sectional survey was not wasted. It could estimate the current prevalence of diabetes and prediabetes among staff, which the occupational health service needed for planning, and it fit a descriptive question perfectly. It simply could not answer the causal one.

Common mistakes

  • MistakeA cross-sectional survey of current workers can show whether a job exposure causes a chronic disease.

    InsteadExposure and outcome are measured together, and people who became ill may have changed jobs or left, so temporality and selection are both problems.

  • MistakeCase-control studies are always inferior to cohort studies.

    InsteadFor rare outcomes or expensive exposure measurement, case-control and nested designs are efficient and, done well, give valid estimates.

  • MistakeClassifying people as exposed if they ever receive a treatment during follow-up is harmless.

    InsteadIt creates immortal time bias; align eligibility, exposure assignment and the start of follow-up at time zero.

  • MistakeLong-term users of a drug or long-serving workers are the best exposed group.

    InsteadPrevalent users are survivors of early effects; a new-user design avoids this bias.

  • MistakeSelf-controlled designs remove all confounding.

    InsteadThey remove confounding by stable personal characteristics but not by factors that change over time, such as season or acute illness.

Summary and key terms

  • Design choice follows from the type of question, whether exposure can be assigned, how common and how slow the outcome is, and what data exist.
  • Nested case-control and case-cohort designs sample within a cohort to measure expensive exposures efficiently.
  • Case-crossover and self-controlled case series designs compare people with themselves, removing stable confounders; they suit transient exposures and acute outcomes.
  • Interrupted time series and difference-in-differences designs evaluate group-level policies.
  • Target trial emulation designs observational studies to mimic a hypothetical trial, aligning eligibility, assignment and follow-up at time zero.
  • Immortal time bias and prevalent-user bias arise when time zero is misaligned; the new-user design prevents them.
Nested case-control study
A case-control study within a defined cohort in which controls are sampled from those still at risk when each case occurs.
Case-cohort study
A design comparing all cases in a cohort with a random subcohort drawn at baseline.
Case-crossover design
A case-only design comparing exposure just before the outcome with exposure at other times in the same person.
Self-controlled case series
A case-only design comparing outcome incidence in risk windows after exposure with other times in the same person.
Target trial emulation
Designing an observational analysis to mimic the protocol of a hypothetical randomized trial.
Immortal time bias
Bias from crediting event-free time before exposure begins to the exposed group.
New-user design
A cohort design including only people who start an exposure during the study period.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Choose a design: (a) Does heavy snow shovelling trigger heart attacks within an hour? (b) Is a rare childhood cancer associated with parental pesticide use? (c) What proportion of adults in a province have had a flu shot this season?

    Show answer

    (a) Case-crossover: a transient exposure and an acute outcome. (b) Case-control: a rare outcome. (c) Cross-sectional survey: a descriptive question.

  2. A study follows patients from a heart attack and classifies them as statin users if they fill a statin prescription at any time in the next year. What bias is likely and how would you fix it?

    Show answer

    Immortal time bias: patients must survive until they fill the prescription to be called users. Fix it by assigning exposure at a defined time zero (for example, prescription filled within 30 days of discharge, with follow-up starting at day 30 for everyone) or by treating exposure as time-varying.

  3. Why does risk-set sampling in a nested case-control study allow the odds ratio to estimate the rate ratio?

    Show answer

    Controls are sampled from those at risk at each case’s event time, so the exposure distribution among controls reflects person-time at risk; the odds ratio then estimates the incidence rate ratio without a rare-disease assumption.

  4. Give one advantage and one limitation of a self-controlled case series for vaccine safety.

    Show answer

    Advantage: stable confounders such as genetics and chronic conditions are controlled automatically, and only cases are needed. Limitation: it assumes the outcome does not change the likelihood of later vaccination, and it controls time-varying confounders such as age or season only if they are modelled.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz