Clinical data analysis

Clinical data analysis turns observations from a clinical study into estimates about the effects of a treatment, with a statement of how certain those estimates are. It addresses whether a product works, how it compares with a placebo or an existing treatment, which harms occur, and whether any patient characteristic relates to benefit or risk. The strength of an answer depends on study design and data quality as much as on statistics.

Hands typing on a laptop computer with a stethoscope lying on the table in front of it

Questions and levels of evidence

The same dataset can support very different kinds of conclusion. ICH E9, the international guideline on statistical principles for clinical trials, separates confirmatory from exploratory work. A confirmatory trial tests hypotheses stated in advance and is normally needed for firm evidence of efficacy or safety. Exploratory analyses may follow the data and choose hypotheses after seeing them. They guide later research but cannot on their own prove that a treatment works.

This distinction should be visible throughout a project. A biomarker found by searching hundreds of measurements after the trial ended is a lead to be tested, however small its p-value. Analyses of observational records need additional care, because treatments were not assigned at random and the groups may differ in ways that were never recorded.

Diagram showing the stages of clinical data analysis from the clinical question to the report

Defining what is being estimated

During a trial, patients stop treatment, take additional medicines or die before a measurement is due. ICH E9(R1) calls such happenings intercurrent events. It asks teams to define the estimand, a precise description of the treatment effect to be estimated. It states the treatments compared, the population, the variable measured in each patient, the handling of intercurrent events and the summary used to compare groups.

StrategyHow an intercurrent event is treatedExample question
Treatment policyThe value is used whether or not the event occurredWhat is the effect of starting this treatment, whatever follows?
HypotheticalA scenario without the event is envisagedWhat would the effect be if rescue medicine were unavailable?
Composite variableThe event becomes part of the outcomeDid the patient respond and continue treatment?
While on treatmentOnly values before the event countWhat is the effect on symptoms during treatment?
Principal stratumThe population is defined by whether the event would occurWhat is the effect in people who would become infected?

Different events in one trial may need different strategies. The choice determines which data must still be collected after a patient stops treatment, so it belongs in the design stage. Sensitivity analyses then examine whether conclusions hold when the assumptions behind the main method are changed.

Data types and preparation

Clinical datasets combine information recorded on different schedules and scales.

Data typeExamplesFrequent issue
Baseline and demographicAge, sex, disease stage, prior therapyInconsistent categories between sites
OutcomesSymptom scores, tumour assessments, survivalDiffering definitions or assessment dates
SafetyAdverse events, clinical chemistry, haematologyCoding terms and laboratory units
ExposureDoses taken, drug concentrations, response markersTiming relative to dosing
Molecular and immuneExpression, genotype, HLA type, cytokines, flow cytometry, tissue stainingBatch effects and many variables for few patients

Files may arrive as spreadsheets, statistical software datasets or standardised structures. The Clinical Data Interchange Standards Consortium (CDISC) publishes the Study Data Tabulation Model for organising collected data and the Analysis Data Model for analysis datasets, with traceability from results back to the tabulated data. CDISC lists both among the standards required for data submissions to the US and Japanese regulators; the exact scope depends on the application.

Before analysis, queries are resolved, terms are coded and protocol deviations are assessed. ICH E6(R3), the good clinical practice guideline, expects data finalisation to follow predefined procedures, data transformations to be traceable and statistical programming to undergo documented quality control. Blinding must be protected until planned unblinding.

Personal data and permissions

Analysis may only use data within the limits set by consent, ethics approval, contracts and data protection law, which differ between countries. Removing names is not enough to make records anonymous. In the United States, the HIPAA privacy rule describes two routes to de-identification for the organisations it covers: a qualified expert determines that the risk of identification is very small, or a listed set of identifiers is removed and no actual knowledge of remaining identifiability exists. Genetic and rare disease data need particular attention.

The analysis plan and analysis sets

A statistical analysis plan records endpoints, populations, models, covariates, handling of missing values, subgroup analyses and multiplicity before the results are known. Later changes should be documented, justified and reported.

Under the intention-to-treat principle, the primary analysis includes all randomised participants. ICH E9 uses the term full analysis set for the group that comes as close to this ideal as possible. The per protocol set is a more compliant subset. In superiority trials the full set is normally primary, because excluding poor adherers can give optimistic results. In equivalence and non-inferiority trials it is not automatically cautious, so both need careful thought.

Multiplicity arises from several endpoints, doses, time points or interim looks. Each extra opportunity to declare success raises the chance of a false positive. The plan should limit the number of primary comparisons or describe an adjustment, and explain why none is needed where that is claimed.

Adjusting for baseline factors that strongly predict outcome can improve precision. A European guideline on baseline covariates expects them to be named in the protocol. Variables measured after randomisation may be affected by treatment and should not be added to the main model in the ordinary way.

Choosing methods for the outcome

Continuous measurements are often analysed with analysis of covariance, which includes the baseline value. Yes or no outcomes may use logistic regression. For repeated measurements over time, mixed models for repeated measures use the whole series and the correlation between visits. Every result should show the size of the effect and a confidence interval, not only a significance test.

Time-to-event outcomes, such as death or disease progression, need methods that handle censoring: for some patients the event has not been observed when follow-up ends. Kaplan-Meier curves estimate the probability of remaining event-free, and the log-rank test compares curves without measuring the size of the difference. The Cox proportional hazards model estimates hazard ratios while accounting for several variables. It assumes that the hazards of compared groups stay in a constant ratio over time, which should be checked.

In many solid tumour trials, response is classified with RECIST version 1.1. Complete response means disappearance of target lesions, with affected lymph nodes shrunk below a set size. Partial response requires at least a 30% decrease in the summed diameters from baseline. Progression requires at least a 20% increase from the smallest recorded sum, with an absolute rise of at least 5 mm, or new lesions. Non-target lesions are also assessed, and anything between partial response and progression in target lesions is stable disease.

Missing data, subgroups and safety

A European guideline on missing data states that no single method suits every case. Analysing only complete cases is not recommended as the primary analysis of a confirmatory trial, and carrying the last value forward can favour the new treatment in some diseases. Prevention matters most; the assumptions made about the remaining gaps should be stated and tested.

Subgroup results need caution, as small groups give imprecise estimates and many splits produce chance differences. The European subgroup guideline judges credibility by prior definition, biological plausibility and replication, and warns that interaction tests often lack power.

Safety analysis compares how often and how severely adverse events occur. ICH E3, on clinical study reports, suggests examining common drug-related events against dose, duration, patient characteristics and drug concentration where study size permits, as well as time of onset. Rare harms may remain undetected in a trial of limited size.

Biomarkers and prediction models

A prognostic factor separates patients with different outcomes. A predictive factor separates patients who respond differently to a treatment. Showing the second normally requires comparing treatment effects between marker-defined groups; a high response rate in marker-positive patients on a single treatment is not enough. Joint US FDA and NIH biomarker definitions also distinguish diagnostic, monitoring, safety, response and risk markers.

Models that predict an individual outcome, including the early appearance of an adverse effect, should be judged on discrimination (separating those with and without the outcome) and calibration (agreement between predicted and observed risk). Performance on the development data tends to flatter a model. Internal validation, evaluation in independent patients and checks across relevant groups are described in the TRIPOD+AI reporting guidance.

Frequently asked questions

What is the difference between statistical significance and clinical relevance?

A significance test asks whether the data are compatible with no effect. Clinical relevance asks whether the size of the effect matters to patients. A large trial can detect a trivial difference, while a small one can miss an important one. Read the estimate and its confidence interval against a justified threshold.

Can an analysis plan be changed after the data are seen?

Changes are possible but weaken the evidence, especially after unblinding. Each deviation should be documented, justified and reported, and it helps readers if the originally planned analysis remains visible. New analyses suggested by the results are exploratory and need confirmation in other data before they support a claim.

Which analysis is used for overall survival?

A common combination is Kaplan-Meier curves, a log-rank test and a Cox model giving a hazard ratio with its confidence interval. If the curves cross or the effect changes over time, a single hazard ratio can mislead, and other summaries should have been planned or considered.

How many patients are needed to study a biomarker?

There is no universal number. It depends on how common the marker is, the number of outcome events, the expected effect, the number of candidates tested and the intended claim. Trials sized for the overall treatment effect are often too small to establish differences between marker groups.

What should a final report contain?

It should describe patient disposition, protocol deviations, analysis sets, baseline characteristics, planned methods, efficacy and safety results with uncertainty, sensitivity analyses and every change from the plan. Exploratory findings should be labelled. Datasets, programs and software versions should allow each number to be traced.

References

This page is general information about the topic. It does not mean that Lead Sciences performs this work. To ask whether we can support your project, contact us.