Retrospective clinical data: What you should check before analysis

Table with a laptop, printed study documents and a stethoscope in a quiet office

In a clinical data table, one row may represent a patient, a hospital stay, or a single measurement. This distinction shapes the entire analysis. Therefore, before selecting procedures, you should clearly define the unit of observation, the temporal structure, and your endpoints.

This guide is intended for researchers with retrospectively collected clinical data. For individual planning and implementation of your analysis, you can find our services under Statistical advice for medicine and biostatistics.

1. Translate the research question into a clear dataset

First, state which population you are investigating and what statement you wish to make. Is it a group comparison, a longitudinal study, a prognostic association, or an event within a specific period? The answer determines which data you need and how they must be assigned temporally.

Determine which event marks the beginning of the observation. An admission date, a surgery, and the start of a therapy are different possible reference points. For example, if a longitudinal course is examined from the start of therapy, later measurements must not be mistakenly counted from admission for individual people.

Record inclusion and exclusion criteria in writing. Document which source population the analyzed cases come from. A clearly traceable selection is more important than a table as large as possible without clear affiliation.

2. Distinguish repeated measurements from duplicates

The following table is entirely fictional. It shows five rows for two people. The measurement value is a freely chosen example value without clinical interpretation.

Multiple rows do not automatically mean multiple patients
Person Measurement Day from start Value
P001 M001 0 12
P001 M002 7 9
P002 M003 0 15
P002 M003 0 15
P002 M004 7 missing

P001 has two regular measurements. For P002, measurement M003 appears twice. This is an indication of a possible double entry, which must be checked against the source documentation. Matching values alone do not prove a duplicate.

If the double entry is confirmed and plausibly cleaned, four planned measurement records remain for two people. Three measurement values are available. For a complete comparison of the two time points, only one complete pair of values is available. This small table does not allow for a reliable inferential statistical analysis. However, it illustrates why the number of rows, the number of patients, and the available sample size for analysis can differ.

Multiple measurements of the same person may not simply be treated as independent observations. For two connected measurements, a paired comparison may be appropriate, depending on the question and assumptions. For more complex courses, the dependencies must be taken into account in the model.

3. Define endpoints and time windows before analysis

Terms such as "complication," "treatment success," or "follow-up" require a concrete definition. Which events count? Until what point are they recorded? What happens if multiple measurements fall into the same time window? And what rule applies if no measurement is available within the intended window?

Decisions should be professionally justified and documented. Selecting the most favorable measurement time point ex post facto changes the statement of the analysis. If the definition was only refined after viewing the data, this must remain transparent.

For survival times, additional questions arise: the start of observation, the definition of the event, the last known contact, and censoring must match. For this, you can find an example of survival analysis in clinical research.

4. Treat missing values as information

An empty measurement value, an examination not performed, and a documented value of zero are different matters. Therefore, do not use a single replacement code for all cases if the source data allow for a more precise distinction.

Check for each variable and time period how many entries are missing. Also see if the pattern differs between groups or over time. This overview alone cannot reliably prove the underlying mechanism. However, it provides important clues for further professional examination.

Deleting all incomplete cases is just as unlikely to be a general standard solution as automatic imputation. What matters are the analysis goal and the justifiable assumptions. Also document which sample size is used for which specific analysis. More on this: Correctly handling missing values.

5. Check units, coding, and links

  • Units: Are measurement values comparable across sources and time periods? Have necessary conversions been documented?
  • Categories: Does the same coding mean the same thing in every file? Are reference groups and missing information identifiable?
  • Dates: Are the sequence and time intervals correct? Are shifted or incomplete entries marked?
  • File linking: Which key links the person, hospital stay, and measurement? Does the merging create additional rows?
  • Plausibility: Are striking values transmission errors or professionally possible observations? Check the source before changing values.

6. Create a verifiable handover package

A helpful package consists of the research question, the definitions of the population and endpoints, a data dictionary, as well as an unaltered source file and a documented working version. Additionally, specify which file is approved for analysis. This allows data submitted later to be controlled and incorporated.

Directly identifying information should not be included unprotected in an initial request. For coordination, a description of the project and an overview of variables are often sufficient. You should clarify the required data exchange with the responsible parties of your project. Pseudonymization does not automatically mean anonymity.

The STROBE checklists help to report observational studies in a traceable manner. They replace neither a suitable analysis plan nor the examination of your data. For an overview of outcome measures, see our article on Key metrics of clinical studies.

Would you like to clarify what your data can actually answer? Describe your medical research project to us. We will determine the appropriate next step and coordinate the scope personally with you.


Put knowledge into practice

From explanation
to your own analysis.

Would you like to know which method suits your project? We review your plans free of charge and give you a clear recommendation.

Your question deserves a personal answer.

Describe your project. We will assess free of charge what support would be right for you.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.