Data & Measurement

Data Dictionary

Definition

A data dictionary is a centralized reference document that describes the structure, content, format, and meaning of each variable in a dataset. It serves as the essential guide for anyone working with the data, whether they are members of the original research team, collaborators, or future researchers conducting secondary analyses. A well maintained data dictionary is a prerequisite for reproducibility, data sharing, and regulatory compliance.

Why it matters

Datasets without documentation become opaque surprisingly quickly. A variable named "v12_r" conveys no information about what it measures, how it was collected, or what its valid values are. When team members leave a project, when data are shared with collaborators at other institutions, or when a researcher returns to their own data after several years, the data dictionary is what makes the dataset interpretable. Archives such as ICPSR and the UK Data Service expect depositors to document every variable (its name, label, value codes and missing value codes), in a codebook or data dictionary or as labels embedded in the data files. In clinical trials, regulators expect the data to be fully described: the US FDA and Japan's PMDA, for example, require a data definition file (Define-XML) that describes the datasets, variables and controlled terms of each study in an electronic submission of standardized study data. Without a data dictionary, datasets that cost millions of dollars to collect can become effectively useless.

How it works

A data dictionary typically contains one row per variable and columns covering several key attributes. The variable name is the identifier used in the dataset file. The label is a plain language description (for example, "Systolic blood pressure at baseline visit"). The data type specifies whether the variable is numeric, categorical, string, date, or another format. Valid values describe the range or set of permissible entries, such as "0 to 300" for a blood pressure measurement or "1 = Male, 2 = Female, 3 = Other, 9 = Not reported" for a categorical variable. Units of measurement (mmHg, kg, years) are recorded for continuous variables. The source instrument or question identifies where the data point comes from, such as "Question 14 on the baseline survey" or "Lab result from central laboratory."

Additional information often includes how missing values are coded (some datasets use 999, others use blank cells, and others use specific codes like "NA" or negative values), any transformations or derivations applied (such as calculating BMI from height and weight), and skip patterns or conditional logic (for example, "collected only if Q10 = Yes"). Some data dictionaries also include the date the variable was added or modified and notes about known issues or caveats.

Data dictionaries should be created at the beginning of a study, alongside the study protocol and case report forms, and updated throughout the study as new variables are added, existing variables are modified, or coding decisions are revised. Formats range from simple spreadsheets (Excel or CSV) to structured metadata standards like DDI (Data Documentation Initiative). Some electronic data capture systems are built from the dictionary itself: a REDCap data dictionary is a CSV file that can be uploaded to create a project's data collection forms.

When to use it

Every dataset used in research should have a data dictionary. This applies to datasets collected through primary research, datasets extracted from electronic health records, datasets compiled from multiple sources, and datasets created through systematic review data extraction. The data dictionary should be created before data collection begins and treated as a living document throughout the study. Data archives commonly expect variable level documentation at deposit, and regulators such as the US FDA require a data definition file with standardized study data submissions.

Key takeaways

  • Datasets without documentation become opaque surprisingly quickly.
  • The variable name is the identifier used in the dataset file.
  • Every dataset used in research should have a data dictionary.
  • A common mistake is not creating a data dictionary at all, or creating one only at the end of the project when key details have been forgotten.

Common mistakes

A common mistake is not creating a data dictionary at all, or creating one only at the end of the project when key details have been forgotten. Another error is creating a dictionary that documents variable names and types but omits critical information such as valid value ranges, missing value codes, and units of measurement. Researchers sometimes maintain the data dictionary in a separate file that becomes disconnected from the dataset, leading to version mismatches where the dictionary describes variables that no longer exist or fails to document newly added variables. Using jargon or abbreviations in variable descriptions without defining them defeats the purpose of the dictionary for external users. Finally, failing to document derived or computed variables leaves other researchers unable to reproduce calculated fields.

Example

A REDCap database for a multicenter stroke recovery study includes a data dictionary with 280 variables. The entry for "mRS_discharge" specifies that it is an ordinal variable with values from 0 to 6 representing the modified Rankin Scale score at hospital discharge, with 99 coded as missing. The dictionary notes that the variable is collected by the treating physician, that inter rater training was conducted at study initiation, and that grading follows the structured interview for the modified Rankin Scale (Wilson and colleagues, 2002). Each site coordinator received a copy of the data dictionary during training, and updates are distributed quarterly.

Sources

  1. [1]Higgins JPT, Thomas J, Chandler J, Cumpston M, Li T, Page MJ, et al, editors. Cochrane Handbook for Systematic Reviews of Interventions, version 6.5 (updated August 2024). Cochrane, 2024.
  2. [2]Broman KW, Woo KH. Data organization in spreadsheets. Am Stat. 2018;72(1):2-10.
  3. [3]Wilson JTL, Hareendran A, Grant M, Baird T, Schulz UGR, Muir KW, Bone I. Improving the assessment of outcomes in stroke: use of a structured interview to assign grades on the modified Rankin Scale. Stroke. 2002;33(9):2243-2246.
  4. [4]Harris PA, Taylor R, Thielke R, Payne J, Gonzalez N, Conde JG. Research electronic data capture (REDCap): a metadata-driven methodology and workflow process for providing translational research informatics support. J Biomed Inform. 2009;42(2):377-381. doi:10.1016/j.jbi.2008.08.010

Cite this term

FullData Dictionary. Paperguide Research Glossary. Paperguide, 2026. Available at: https://paperguide.ai/research-glossary/data-dictionary/
In-text(Paperguide, 2026)

Related terms