Why the Analysis Sample Needs Its Own Accounting
A comparative observational study does not move directly from a database query to an effect estimate. Records may be removed during eligibility assessment, treatment and comparator groups may be restricted by the analytic design, matching may leave records unused, and outcome data may be unavailable for some otherwise eligible people. A reader needs to know how many people remain at each stage, and why the counts change.
A clear accounting trail is more than a presentation aid. It lets readers check whether the reported analysis follows the stated design, see how much data contribute to each outcome, and assess whether follow-up differs between groups. Counts alone do not establish that an analysis is unbiased, but unexplained changes in counts make its evidence difficult to evaluate.
Make Every Change in the Flow Checkable
A useful flow starts with the records identified and proceeds through eligibility, treatment and comparator classification, any design-specific selection, and outcome availability. At each step, state the count entering the step, the count excluded or retained, and the reason. If counts are reported separately by treatment group, readers can see where group sizes diverge.
For a simple sequential flow, the accounting identity is:
The identity applies only when each person is counted once at that step. If a report gives several reasons for exclusion and one person has more than one reason, those reason-specific counts overlap and must not be added as if they were distinct people. Instead, say that reasons are nonexclusive, or use a stated rule to assign one primary reason per person. State whether exclusions were applied sequentially, since the order can affect the count attributed to each reason.
For each outcome analysis and group \(g\), a basic outcome-availability count is:
If the analysis additionally requires other variables, such as complete covariates, say so and show those losses separately. A reader should not have to infer whether the denominator is the eligible cohort, the matched cohort, or only those with an observed outcome.
Worked Example: Checking a Sequential Cohort Flow
Suppose a hypothetical registry search identifies 12,000 records. After removing 300 duplicate records and 1,700 records that fail eligibility criteria, 10,000 people remain eligible. Among them, 2,400 received the treatment strategy and 7,600 entered the comparator group. Covariates required for the planned analysis are unavailable for 180 treated people and 420 comparator people.
First check the eligibility flow: \(12{,}000-300-1{,}700=10{,}000\). The treatment classification also reconciles: \(2{,}400+7{,}600=10{,}000\).
After excluding people without the required covariates, the group counts are \(2{,}400-180=2{,}220\) treated and \(7{,}600-420=7{,}180\) comparators. Their total is \(2{,}220+7{,}180=9{,}400\), which also equals \(10{,}000-(180+420)\). A report should make clear that these 600 exclusions concern covariate availability, not outcome availability.
These equations are checks on the stated flow, not evidence that the exclusions are harmless. The report should identify the missing-covariate rule and describe the affected groups. If the 180 and 420 counts instead included overlapping exclusion reasons, simply adding those reasons would not verify a unique-person total.
Report Matching and Weighting Without Hiding the Counts
After matching, distinguish the people eligible for matching from those actually matched and those who remain unused. In a one-to-one match without replacement, for example, 2,100 matched treated people paired with 2,100 matched comparators form 2,100 pairs and involve 4,200 records. State the matching ratio and whether matching used replacement: with replacement, the same comparator can appear in more than one matched set, so the number of matched sets and the number of unique comparator people are not necessarily equal.
Also distinguish people who were not selected as matches from people who were ineligible for the analysis. “Not matched” describes the design’s selection; it does not by itself mean a person lacked an outcome or was lost to follow-up. If matching used a caliper or other restriction, give the number not matched and the relevant reason rather than presenting only the final matched count.
Weighting usually retains a record-level analytic set but gives records different contributions. Therefore a weighted analysis should report the number of people with usable outcomes in each group, clarify how weights were handled when outcomes were unavailable, and provide useful summaries of the weights or weighted totals. A weighted total is not a headcount. One diagnostic summary of weight concentration is the effective sample size:
where \(w_i\) is the analysis weight for record \(i\). This quantity can be smaller than the number of records when weights are unequal; it is a summary of weight concentration, not a literal count of people. State how weights were normalized and whether the summary is for the full weighted cohort or the outcome-specific analysis sample. Do not substitute \(n_{\text{eff}}\) for the actual record count.
Worked Example: Reporting Matching and Outcome Counts
Continue the hypothetical cohort after the covariate exclusions: 2,220 treated people and 7,180 comparators have the required covariates. Suppose one-to-one matching without replacement produces 2,100 pairs. Thus 2,100 treated people and 2,100 unique comparators are matched. The unmatched counts are \(2{,}220-2{,}100=120\) treated people and \(7{,}180-2{,}100=5{,}080\) comparators.
Now suppose the specified outcome is observed for 1,995 of the matched treated people and 2,020 of the matched comparators. The outcome-unavailable counts are \(2{,}100-1{,}995=105\) and \(2{,}100-2{,}020=80\), respectively. The outcome analysis therefore uses 1,995 treated records and 2,020 comparator records, not all 4,200 matched records.
A transparent summary would report the 2,100 matched pairs, the numbers of matched people with observed outcomes by group, and the numbers whose outcomes were unavailable. Because outcome availability differs between the groups here, the report should not simply label all matched pairs as analyzed. If the analysis requires complete pairs, it must additionally say how many pairs had outcomes observed for both members; the group-specific counts alone do not determine that number.
Attrition and Follow-Up Are Group-Specific
When an outcome is intended to be assessed over a follow-up window, report the number with outcome information and the number without it separately for treated and comparator groups. For a clearly defined starting group, the observed-outcome proportion and attrition proportion are:
The starting denominator must be named: it might be all eligible people, the matched group, or another explicitly defined analysis cohort. The two proportions sum to one only when each person in that starting group is classified as either having an observed outcome or having an unavailable outcome for that window. Explain other categories, such as an outcome that is not yet due to be measured.
“Attrition” should not collapse distinct processes into one vague label. Administrative end of data, loss of contact, withdrawal, death, and missing outcome measurement can have different meanings. Report the follow-up window and how outcome status was determined; where relevant, summarize actual follow-up by group using an appropriate statistic and state its units. A person whose outcome is unavailable is not automatically known to have experienced no outcome.
A group difference in attrition is a reason for closer scrutiny, not proof by itself that an estimate is biased. The concern depends on why outcomes are unavailable and how that relates to treatment, prognosis, and the outcome. Conversely, similar attrition percentages do not prove that missingness is innocuous. The report should describe the pattern and the handling of unavailable outcomes rather than treating a percentage comparison as a correction.
Worked Example: Calculating Group-Specific Attrition
In a separate hypothetical study, 500 treated people and 500 comparators enter a 12-month outcome follow-up. At 12 months, the outcome is observed for 430 treated people and 465 comparators. No other outcome-status category is present in this example.
For the treated group, \(500-430=70\) outcomes are unavailable, so attrition is \(70/500=0.14\), or 14.0%. For the comparator group, \(500-465=35\) outcomes are unavailable, so attrition is \(35/500=0.070\), or 7.0%. The observed-outcome proportions are \(430/500=86.0\%\) and \(465/500=93.0\%\), respectively.
The difference in attrition proportions is \(14.0\%-7.0\%=7.0\) percentage points. A suitable description is: “By 12 months, outcome data were unavailable for 70 of 500 treated participants (14.0%) and 35 of 500 comparators (7.0%), a difference of 7.0 percentage points.” This quantifies the imbalance; it does not establish its cause or determine the direction of any resulting bias.
A Practical Reporting Sequence
Use a consistent sequence, with counts attached to each reason and group where possible. This helps a reader reproduce the path from records identified to the analysis sample.
Give the records identified and the people entering eligibility assessment. Explain duplicate handling or other record-level processing that changes the count.
Report people excluded at eligibility assessment, their reasons, and the resulting eligible treated and comparator counts. Clarify whether reasons overlap.
For matching, give the matched sets, group-specific matched counts, and unmatched counts. For weighting, give record counts and describe the analysis weights without calling weighted totals people.
Give the number with an observed outcome and the number without it by group, using the correct analysis-specific denominator. State the follow-up window and how unavailable outcomes were handled.
Diagnostics, Alternatives, and Common Pitfalls
Before finalizing a flow, check that each sequential step reconciles arithmetically and that the totals agree with the analysis data. Check that group-specific counts sum to reported totals, that the outcome-analysis denominators match the stated cohort, and that matched-set counts are not confused with unique people. For weighted analyses, verify that the reported weight summaries refer to the same records and weight version used for the stated analysis.
A flow diagram can make a long sequence of exclusions easier to follow, while a table can make group-specific outcome availability and attrition easier to compare. These are presentation alternatives, not substitutes for an accounting rule: both should display the same denominators, explain overlapping reasons, and identify the analysis sample. A brief text summary can orient readers, but text alone is often difficult to audit when many stages or outcomes are involved.
- Pitfall: treating all exclusion reasons as separate people. Adding nonexclusive reason counts can overstate the number excluded. State that reasons overlap, or report mutually exclusive primary reasons.
- Pitfall: reporting only the final matched sample. The reader cannot tell how many eligible people were unused. Show the pre-match and post-match group counts and explain unmatched records.
- Pitfall: calling a weighted total a sample size. Weights change contributions, not the number of people observed. Report record counts and weight summaries separately.
- Pitfall: using one overall attrition percentage. It can hide group differences. Give group-specific numerators, denominators, and percentages for the stated follow-up window.
- Pitfall: assuming the analysis sample is the same for every outcome. Outcome availability can differ. Reconcile counts for each outcome or clearly state when outcomes share the same analysis sample.
A transparent accounting trail does not settle questions about confounding, missing-data assumptions, or the population represented by a design. It does allow readers to see which observations contributed and where information was lost. Keep the account descriptive: report the flow and follow-up accurately, without treating a count difference as a causal finding.
Check Your Understanding
Work through each item, then compare with the solutions below.
- A study begins with 800 eligible treated people and 1,200 eligible comparators. Matching retains 600 people in each group. How many are unmatched in each group, and how many matched people are there in total?
- In a 6-month analysis, outcome data are observed for 360 of 400 treated people and 450 of 500 comparators. Calculate the attrition percentage in each group.
- Why can counts for several exclusion reasons sum to more than the number of people excluded?
- A weighted analysis uses 250 records and reports a weighted total of 310. Why should the report still state that 250 records were used?
Solutions. (1) There are \(800-600=200\) unmatched treated people and \(1{,}200-600=600\) unmatched comparators. The matched analysis includes \(600+600=1{,}200\) people, or 600 pairs if the matching is one-to-one. (2) Treated attrition is \((400-360)/400=40/400=10.0\%\). Comparator attrition is \((500-450)/500=50/500=10.0\%\). (3) A person may meet more than one exclusion reason, so reason-specific counts overlap unless a rule makes them mutually exclusive. (4) The weighted total reflects the sum of analysis weights, not a headcount; 250 is the number of observed records, and the weighted total describes their combined weighted contribution.