BIOSTATISTICS • STUDY DESIGN & DATA

Data Collection & Quality — Summarize data collection methods and data quality issues

How rigorous data collection and quality control underpin every valid biostatistical inference.

Historical Context & Motivation

The idea that systematic data collection is essential to drawing reliable conclusions about health and disease has a surprisingly long lineage. Long before modern clinical trials, physicians and public-health pioneers recognized that haphazard observation leads to unreliable generalizations. The evolution from anecdotal case reports to structured, protocol-driven data collection represents one of the most consequential intellectual shifts in medicine. Understanding this history illuminates why contemporary biostatistics places such intense emphasis on how data are gathered—not merely on how they are analyzed—because the quality of upstream processes determines the validity of every downstream inference.

1747
Lind's Scurvy Trial
James Lind conducted what is often cited as the first controlled clinical experiment, comparing six treatments for scurvy among 12 sailors aboard HMS Salisbury. His structured comparison introduced the concept of standardized data collection in a therapeutic context.
1854
Snow's Cholera Investigation
John Snow meticulously mapped cholera deaths in London, collecting address-level data and water-source information. His work demonstrated that the quality of spatial and exposure data could reveal causal pathways even without laboratory confirmation.
1948
Streptomycin Trial & the RCT
The British Medical Research Council's streptomycin trial for tuberculosis became the landmark randomized controlled trial (RCT). It formalized random allocation, blinding, and standardized outcome assessment—raising the bar for data quality in clinical research.
1996
ICH-GCP Guidelines
The International Council for Harmonisation published Good Clinical Practice (GCP) guidelines, codifying data quality standards—including source-document verification, audit trails, and electronic data capture—across the global pharmaceutical industry.
2010s
Big Data & EHR-Based Research
The proliferation of electronic health records (EHRs) and wearable sensors created massive secondary data sources. This shift introduced new quality challenges: missingness, coding inconsistencies, and the need for data harmonization across heterogeneous systems.

The central question that this historical trajectory raises is deceptively simple: How do we collect data in a way that maximizes accuracy, minimizes bias, and preserves the integrity needed for sound statistical inference? Answering it requires a careful taxonomy of collection methods and a clear-eyed understanding of the quality problems that can compromise even well-designed studies.

Core Principles & Definitions

Before diving into specific methods, it is essential to anchor the discussion in a set of foundational principles that govern how biostatisticians evaluate data. These principles apply regardless of whether data come from a tightly controlled laboratory experiment or a retrospective chart review, and they provide the conceptual scaffolding for assessing any dataset's fitness for purpose.

1

Validity

A measurement is valid if it actually captures the construct it intends to measure. Internal validity concerns whether causal inferences are warranted; external validity concerns generalizability to broader populations.
2

Reliability

A measurement is reliable if repeated applications under consistent conditions yield the same result. High reliability is necessary but not sufficient for validity—an instrument can produce the same wrong answer every time.
3

Bias

Systematic error, or bias, causes observed values to depart from true values in a consistent direction. Bias can enter at every stage: selection of subjects, measurement of exposures, and ascertainment of outcomes.
4

Precision

The degree of precision reflects how tightly clustered repeated measurements are around their mean. Precision is related to random error and can be improved by increasing sample size or refining the measurement instrument.
5

Completeness

Data completeness refers to the proportion of planned observations that are actually recorded. Missing data threaten both the power and the validity of analyses, particularly when the missingness mechanism is related to the outcome of interest.
KEY TAKEAWAY
Think of data collection like constructing the foundation of a building. No matter how sophisticated the statistical analysis (the architecture above), a flawed foundation—biased sampling, unreliable instruments, incomplete records—will make the entire structure unstable. Validity ensures you are measuring the right thing; reliability ensures you measure it consistently; and completeness ensures you have enough bricks to build at all.

Visual Overview of Data Collection Methods

Data collection methods in biostatistics can be organized along two primary axes: the degree to which the investigator controls the data-generating process (observational versus experimental) and whether data are gathered prospectively or retrospectively. The diagram below maps the major collection approaches along these dimensions, illustrating how each method sits within the broader landscape of biostatistical research.

The vertical axis represents the degree of investigator control—RCTs sit at the top because the researcher controls exposure assignment. The horizontal axis distinguishes retrospective designs (left) from prospective ones (right). Secondary data sources like registries and EHRs occupy the lower-right because they are prospectively collected but without investigator control.

Each position in this space comes with characteristic strengths and vulnerabilities. Higher investigator control generally means less confounding but greater cost and possible ethical constraints. Prospective designs allow standardized data collection instruments, whereas retrospective methods must contend with whatever documentation already exists. Recognizing where your study sits in this landscape is the first step toward anticipating—and mitigating—the data quality issues most likely to arise.

Quantifying Data Quality

While many data-quality concepts are best understood qualitatively, several can be formalized mathematically. Quantitative metrics allow investigators to set explicit quality thresholds in study protocols and to report quality indicators alongside results, thereby making the evidence base more transparent and reproducible.

Inter-Rater Reliability: Cohen's Kappa

When categorical data are collected by multiple raters—radiologists reading imaging studies, pathologists grading tissue samples—Cohen's kappa (κ) quantifies agreement beyond what would be expected by chance alone. A κ of 1 indicates perfect agreement, while a κ of 0 indicates agreement no better than random.

COHEN'S KAPPA
κ = (P₀ − Pₑ) / (1 − Pₑ)
P0 = observed proportion of agreement; Pe = expected proportion of agreement under independence. Values above 0.80 are generally considered 'almost perfect' agreement; 0.61–0.80 'substantial'; 0.41–0.60 'moderate'.

Sensitivity and Specificity of a Measurement Instrument

When the data collection instrument is a diagnostic test or screening tool, the concepts of sensitivity and specificity describe how well that instrument distinguishes true cases from non-cases. These metrics are fundamental to understanding misclassification, a major source of data quality degradation.

SENSITIVITY (TRUE POSITIVE RATE)
Se = TP / (TP + FN)
TP = true positives; FN = false negatives. Sensitivity captures the instrument's ability to correctly identify actual cases.
SPECIFICITY (TRUE NEGATIVE RATE)
Sp = TN / (TN + FP)
TN = true negatives; FP = false positives. Specificity captures the instrument's ability to correctly identify actual non-cases.

Missing Data Rate and Mechanisms

The proportion of missing values for a variable is a basic but informative quality metric. More important, however, is the mechanism generating the missingness. Rubin's taxonomy distinguishes three mechanisms: Missing Completely at Random (MCAR), where missingness is unrelated to any data; Missing at Random (MAR), where missingness depends on observed data but not on the missing value itself; and Missing Not at Random (MNAR), where the probability of being missing depends on the unobserved value. MNAR is the most dangerous because it can introduce bias that no amount of statistical adjustment can fully remove without untestable assumptions.

Classification of Data Quality Issues

Data quality issues in biostatistical research can be organized into a taxonomy that spans the entire data lifecycle—from the design of collection instruments through storage, coding, and eventual analysis. The diagram below provides a hierarchical view of these problems, grouped by the stage at which they most commonly arise.

Data quality issues arise at three lifecycle stages: Design & Selection (e.g., selection bias, volunteer bias), Measurement & Recording (e.g., misclassification, recall bias), and Processing & Analysis (e.g., missing data, coding errors). Cross-cutting issues like confounding and the Hawthorne effect can affect multiple stages simultaneously.
Selected data quality issues with definitions and clinical examples
Quality IssueDefinitionExample in Clinical Research
Selection BiasSystematic error arising when the sample is not representative of the target population.A study on cardiovascular risk recruits only patients who attend a university clinic, excluding sicker or less mobile individuals.
Information (Misclassification) BiasErrors in measuring exposure or outcome, which can be differential (unequal across groups) or non-differential.Using ICD codes in claims data that inconsistently capture mild asthma leads to non-differential misclassification of disease status.
Recall BiasDifferential accuracy in recollecting past exposures between cases and controls.Mothers of children with birth defects may recall medication use during pregnancy more thoroughly than mothers of healthy children.
ConfoundingA third variable associated with both the exposure and the outcome distorts the estimated effect.Observing that coffee drinkers have higher lung-cancer rates without controlling for smoking.
Loss to Follow-UpAttrition of participants during a longitudinal study, which may be differential across exposure groups.In a drug trial, patients experiencing side effects drop out at higher rates, leaving a healthier remaining sample that overestimates efficacy.

Worked Example: Evaluating Inter-Rater Agreement

Suppose two pathologists independently classify 100 tissue biopsy specimens as either 'malignant' or 'benign.' Before using their classifications in a study, the research team must quantify inter-rater reliability. The following two-by-two table summarizes their joint classifications:

2×2 agreement table for two pathologists
Pathologist B: MalignantPathologist B: BenignRow Total
Pathologist A: Malignant40545
Pathologist A: Benign104555
Column Total5050100
Computing Cohen's Kappa (κ)
1
Step 1 — Compute Observed Agreement (P₀)The cells where both raters agree are the diagonal entries: 40 (both say malignant) and 45 (both say benign). Therefore, P0 = (40 + 45) / 100 = 0.85.
P0 = 0.85
2
Step 2 — Compute Expected Agreement (Pₑ)Under independence, the probability that both raters say 'malignant' is (45/100) × (50/100) = 0.225. The probability that both say 'benign' is (55/100) × (50/100) = 0.275. Summing these gives Pe = 0.225 + 0.275 = 0.50.
Pe = 0.50
3
Step 3 — Apply the Kappa FormulaSubstituting into κ = (P₀ − Pₑ) / (1 − Pₑ): κ = (0.85 − 0.50) / (1 − 0.50) = 0.35 / 0.50 = 0.70.
κ = 0.70
4
Step 4 — Interpret the ResultA kappa of 0.70 falls in the 'substantial agreement' range (0.61–0.80) according to Landis and Koch's benchmark scale. This level of agreement is generally acceptable for most research purposes, though the 15 discordant classifications (5 + 10) warrant further review. The investigator should examine whether the disagreements cluster around borderline histological features—if so, additional training or a third independent reviewer may improve data quality.
Substantial agreement — κ = 0.70

Strengths & Limitations of Collection Methods

No single data collection method is universally optimal; each entails a set of trade-offs that investigators must weigh against the scientific question, available resources, and ethical constraints. The table below provides a systematic comparison of the major approaches encountered in biostatistics.

Comparison of major data collection methods in biostatistics
MethodKey StrengthsKey Limitations
Randomized Controlled Trial (RCT)Gold standard for causal inference; randomization balances measured and unmeasured confounders; standardized protocols ensure high data quality.Expensive and time-consuming; ethical constraints may prevent randomization of harmful exposures; strict eligibility criteria may limit external validity.
Prospective CohortTemporal sequence established; exposure measured before outcome; can study multiple outcomes simultaneously.Susceptible to loss to follow-up; confounding possible; lengthy and resource-intensive for rare outcomes.
Case-ControlEfficient for rare diseases; relatively quick and inexpensive; can assess multiple exposures.Prone to recall and selection bias; cannot directly estimate incidence; temporal relationship may be unclear.
Cross-Sectional SurveySnapshot of prevalence; useful for hypothesis generation; relatively inexpensive.Cannot establish causation or temporal sequence; susceptible to prevalence-incidence bias (Neyman bias).
Secondary Data (EHR / Registry)Large sample sizes; cost-effective; captures real-world practice patterns.Data not collected for research purposes; coding inconsistencies; missing data; limited variable depth.
KEY TAKEAWAY
Choosing a data collection method is like selecting the right lens for a camera. A macro lens (RCT) gives exquisite detail on a narrow field, while a wide-angle lens (registry data) captures a broader scene but at lower resolution. The best researchers match the lens to the question—using experimental designs when causal precision is paramount and observational designs when feasibility, ethics, or generalizability demand it.

Connections to Advanced Data Quality Frameworks

The foundational concepts covered in this lesson connect directly to several advanced frameworks that you will encounter in upper-level biostatistics and epidemiology courses. Understanding the trajectory from basic quality principles to sophisticated analytical remedies helps contextualize why data quality deserves attention upfront rather than as an afterthought.

From foundational concepts to advanced analytical methods
Foundational ConceptAdvanced ExtensionKey Insight
Missing data (MCAR/MAR/MNAR)Multiple imputation & pattern-mixture modelsMultiple imputation creates several plausible completed datasets and pools results, properly reflecting uncertainty due to missingness.
Misclassification biasQuantitative bias analysis (QBA)QBA uses sensitivity and specificity estimates to adjust effect measures for known misclassification, bounding the true effect.
ConfoundingDirected acyclic graphs (DAGs) & propensity scoresDAGs formalize causal assumptions, guiding which variables to adjust for. Propensity-score methods mimic randomization in observational data.
Inter-rater reliability (κ)Latent class models for rater disagreementWhen no gold standard exists, latent class models estimate sensitivity and specificity of each rater simultaneously.
EHR/secondary data qualityPhenotyping algorithms & NLPMachine learning and natural language processing extract structured phenotypes from unstructured clinical notes, improving variable accuracy.

Each of these advanced methods exists precisely because data quality problems are pervasive and often unavoidable. The key lesson is that while statistical remedies can mitigate quality issues, they cannot fully substitute for careful prospective data collection. As the principle in computing famously states: garbage in, garbage out. Investing effort in collection instrument design, rater training, quality monitoring, and protocol adherence before any data are analyzed remains the most cost-effective strategy for producing credible biostatistical evidence.

🔭 Looking Ahead
In subsequent courses, you will learn to apply sensitivity analyses that ask: 'How much would my conclusions change if a specific data quality assumption were violated?' This approach—often called E-values for unmeasured confounding or tipping-point analyses for missing data—transforms data quality from a pass/fail criterion into a quantitative continuum.

Practice Problems

PROBLEM 1CONCEPTUAL
A researcher claims that because her cross-sectional survey of 10,000 adults shows a strong association between daily multivitamin use and lower self-reported depression, multivitamins likely prevent depression. Identify at least two data-quality or design-related reasons why this causal interpretation is problematic.
PROBLEM 2BASIC CALCULATION
Two nurses independently classify 200 wound assessments as either 'healing' or 'not healing.' They agree on 120 'healing' and 50 'not healing' cases. Nurse A calls 130 wounds 'healing' while Nurse B calls 140 wounds 'healing.' Calculate Cohen's kappa and interpret the level of agreement.
PROBLEM 3INTERMEDIATE
A prospective cohort study of occupational asbestos exposure and mesothelioma follows 5,000 workers over 20 years. By year 20, 1,200 workers (24%) have been lost to follow-up. You learn that workers who left the company due to respiratory symptoms were more likely to drop out. Explain what type of bias this introduces, whether it is likely to inflate or deflate the estimated risk of mesothelioma, and propose one design-level strategy to mitigate it.
PROBLEM 4APPLIED
A hospital plans to use its electronic health record (EHR) database to study the association between statin use and incident type 2 diabetes. The exposure variable (statin prescription) comes from pharmacy dispensing records, and the outcome (diabetes diagnosis) is identified using ICD-10 codes. Describe three specific data quality issues the investigators should evaluate before proceeding, and for each, propose a practical quality-assurance step.
PROBLEM 5CRITICAL THINKING
Suppose you are designing a multi-center clinical trial to evaluate a new vaccine's efficacy in five countries with different healthcare infrastructures. Outline a data quality management plan that addresses at least four distinct quality threats, specifying how each threat relates to a core data-quality principle (validity, reliability, completeness, or freedom from bias).

Lesson Summary

Data collection in biostatistics spans a continuum from tightly controlled randomized controlled trials to opportunistic use of secondary data sources such as electronic health records and disease registries. Between these poles lie prospective cohort studies, case-control studies, and cross-sectional surveys, each offering a distinct trade-off between internal validity, feasibility, and generalizability. The choice of method determines which quality threats are most salient—experimental designs guard against confounding through randomization, while observational designs must contend with selection bias, information bias, and recall bias.

Data quality rests on four pillars: validity (measuring what we intend), reliability (measuring consistently, quantified by Cohen's kappa), completeness (minimizing missing data and understanding whether missingness is MCAR, MAR, or MNAR), and freedom from systematic bias. Advanced methods such as multiple imputation, quantitative bias analysis, and propensity-score methods can partially correct for quality deficits, but they are no substitute for rigorous upfront data collection.

Varsity Tutors • Biostatistics • Data Collection & Quality