Week3 cohort construction FLI

Week 3 — Q2 in depth: from population to analytic cohort

Duration: ~2.5 h (Tue, before the Thu lab). Deck: lectures/slides/Week3_cohort_FLI_slides.qmd.

Timing. Per-slide markers below sum to 140 min including the break, against a 150-minute cap — about 10 minutes of slack. The markers include the interactive moments (the vote on the alcohol codings, the type-the-funnel exercise on L2’s code), so the total is what happens in the room rather than content plus unbudgeted discussion. The deck’s speaker notes carry the identical split; if you retime a slide, retime it in both files. See If you are running behind at the foot of this file.

The lecture is one argument, and it is a continuation rather than a new topic: Week 2 asked the six questions, and today is Q2 answered all the way down to code. The spine is conceptual definition → operational definition → the contest over the operations → the funnel that makes the contest visible. A dedicated block at the end puts Thursday’s actual L2 code on screen, so the lab reads as the execution of Tuesday’s lecture on a second paper rather than as a change of subject.

Row-set discipline. Every quantitative slide names the analysis set it quotes. The reconstruction has two and they are not interchangeable: full reconstructed analytic file, N = 6,371 (what scripts 03–06 read) and locked mortality-linked cohort, N = 6,048 (the WTSAF2YR subset). Saying “N” without saying which is the error this course exists to catch. Slide 17 puts the two side by side precisely so the habit has an object.

What this week does NOT do. The survey mechanics belong to Week 6, the causal reading of adjustment to Week 4, and the missing-data methods to Week 7. Today the funnel’s MISSINGNESS rows are named and counted, not treated.

Learning objectives

  1. Locate target, source and analytic populations in a published study, and name the kind of each narrowing step rather than treating all drops alike.
  2. Reconstruct the MASLD case definition as data operations: FLI ≥ 60 plus ≥ 1 of five cardiometabolic criteria, each with its own threshold and variable.
  3. Convert a prose eligibility paragraph into executable logic with a comment citing the sentence it implements — and recognise when the sentence does not determine the code.
  4. Build and defend an eligibility funnel with N removed and N remaining at every step, and a type on every row.
  5. State why you never tune the cohort to hit the paper’s N, in terms of what the match would and would not demonstrate.
  6. Recognise the same cohort-assembly moves in a different paper — the benzodiazepine / opioid exercise L2 runs on Thursday.

Continuity

The division of labour, stated on Slide 2 and again on Slide 21

Teaches On which paper
Tuesday (this lecture) the judgment — prose eligibility → defensible logic MASLD (Kueh)
Thursday (L2) the mechanics — multi-cycle download, mortality linkage, eligibility steps benzodiazepine / opioid
P1 both, transferred the student’s locked paper

Say this out loud, twice. L2 is EpiMethods accessingE2 — NHANES 1999–2014, benzodiazepine ± opioid use and all-cause mortality. It is not the MASLD build, and that is deliberate: a student who has only ever assembled this one cohort cannot tell which steps were general and which were ours. An earlier version of this deck told students L2 would “build the MASLD analytic dataset from the L1 frame,” which is false on both counts — L2 is an independent download of a different year range with a mortality linkage L1 never touched.


Frame · 6 minutes across the slides below

Slide 1 — Title (1 min)

Slide 2 — Q2, in depth, and this week’s division of labour (4 min)

Slide 3 — M0: deadline today (1 min)

Part 1 — The case definition · 35 minutes across the slides below

Slide 4 — Target, source, analytic, and what each step costs (6 min)

Slide 5 — MASLD: a concept that has to become data operations (4 min)

Slide 6 — Steatosis: the FLI, and where its inputs live (5 min)

Slide 7 — FLI, worked: one subject (6 min)

Slide 8 — The same subject, one lab value later (6 min)

Slide 9 — Metabolic dysfunction: five criteria, ≥ 1 required (8 min)

Part 2 — Eligibility as executable logic · 33 minutes across the slides below

Slide 10 — Exclusions are scientific claims (6 min)

Slide 11 — The sentence (4 min)

Slide 12 — One sentence, three cohorts (10 min) · do not drop

Slide 13 — The trap inside the trap: reserved codes (5 min)

Slide 14 — What we did, and why we are telling you (8 min)

Slide 15 — BREAK (10 min)

Part 3 — The funnel · 34 minutes across the slides below

Slide 16 — The funnel, with a type on every row (9 min) · do not drop

Slide 17 — Two row sets, and they are not interchangeable (7 min)

Slide 18 — What the funnel reveals (5 min)

Slide 19 — Why you never tune the cohort to hit the paper’s N (7 min)

Slide 20 — Reviewing someone else’s eligibility (6 min)

Part 4 — Thursday · 20 minutes across the slides below

Slide 21 — L2 assembles the same object from a different paper (5 min)

Slide 22 — And L2 writes a funnel, it just does not know it yet (7 min) · do not drop

Slide 23 — One more thing to notice on Thursday (4 min)

Slide 24 — P1: the same two things, on your paper (4 min)

Close · 2 minutes

Slide 25 — Where we landed (2 min)

Slide 26 — Reference (uncounted)


If you are running behind

Drop in this order. The first two cost the least.

  1. Slide 20 — reviewing someone else’s eligibility (6 min). M2 owns peer review; the BMI-header example can be reduced to one sentence on Slide 17.
  2. Slide 8 — the boundary flip (6 min). The point survives as the last bullet of Slide 7, though you lose the best demonstration of dichotomisation in the lecture.
  3. Slide 18 — what the funnel reveals (5 min). Fold the “after eligibility” scoping and the 94.7% into the Slide 16 walkthrough.
  4. Slide 5 — concept to data operations (4 min). Week 2 covered the substance; go straight from Slide 4 to the FLI.

Never drop Slides 12, 16 or 22. The alcohol contest, the typed funnel, and L2’s own funnel are the lecture; everything else supports one of the three.