The codebook variable dictionary template is a free, editable Word and PDF document from ResRef for documenting every variable in a study dataset, for data entry, analysis, archiving and sharing. It comes with a step-by-step guide and a completed example, so you can see what a finished version looks like before you start.
What is the codebook variable dictionary template?
A codebook (data dictionary) defines each variable: its short name, a readable label, its type, allowed values or codes, units, how missing values are coded and where it comes from. It lets data be entered consistently, analysed correctly and understood years later or by someone else. Funders and repositories increasingly expect one as part of good, reusable (FAIR) data.
Template at a glance
Template ID
RR-DAT-04
Category
Data Collection & Management
Best used for
Documenting every variable in a study dataset, for data entry, analysis, archiving and sharing.
Languages
English and Arabic
Formats
Word (.docx) and PDF (fillable)
Files in the download
8
Version
1.0
Last updated
2026-11
Who should use the codebook variable dictionary template?
Use the codebook variable dictionary template for documenting every variable in a study dataset, for data entry, analysis, archiving and sharing. It suits students, clinicians and researchers at any level. In addition, the guide explains each section in plain language, so you do not need previous experience with this kind of document.
What the download includes
The codebook variable dictionary template, ready to complete in Word or PDF.A guide with a completed example: why every dataset needs a codebook, how to fill one in, a completed example, common mistakes and a checklist.A PDF version you can fill in on screen.Arabic versions of the template and guide.How to use the codebook variable dictionary template
First, download the codebook variable dictionary template in the language and format you need.Next, read the guide. It explains each section and shows a completed example.Then replace every highlighted prompt with your own study details, and delete the prompts.After that, check the rules of your institution, ethics committee or target journal, because they take precedence.Finally, use the checklist below before you submit or share the document.Tips for a strong result
Build it before data collection, from the CRF or questionnaire, item by item.Use one naming convention (lower case, underscores, time point suffix such as _m6).Code missing values explicitly and differently from real values; never leave them as 0.Write derivation rules precisely, including how missing items are handled.Version the codebook with the dataset and log every change.Download the codebook variable dictionary template
English
Word templateFillable PDF templateWord guide with completed examplePDF guide with completed exampleArabic
Word templateFillable PDF templateWord guide with completed examplePDF guide with completed exampleChecklist before you finish
Finally, before you share your codebook variable dictionary template, check that each point below is true.
Every dataset variable listed, with a unique nameType, codes and units givenMissing-value codes defined and used consistentlyDerived variables documented with exact rulesVersion and change log up to dateRelated templates
In addition, these templates are often used alongside this one at the same stage of a study.
Case Report Form (CRF) templateQuestionnaire templateData Management Plan templateData Sharing Statement templateSources and further reading
Wilkinson MD, et al. The FAIR Guiding Principles for scientific data management and stewardship. Scientific Data. 2016.ICH E6(R3) Good Clinical Practice (2025): data governance and records.EQUATOR Network: reporting guidelines for health research.PubMed: search published research for “codebook variable dictionary”Frequently asked questions
Is the codebook variable dictionary template free to use?
Yes. The codebook variable dictionary template is free for academic, educational and research purposes. However, commercial use, resale or commercial distribution is not allowed. Copyright in original ResRef content and designs remains with ResRef.
Is the codebook variable dictionary template available in Arabic?
Yes. The template and its guide both have Arabic versions, so you can work in either language. In addition, both versions follow the same structure and the same completed example.
Can I change the template to fit my institution?
Yes. You can add, remove or rename sections, because the files are fully editable. Always follow the rules of your institution, ethics committee or journal first, since they take precedence over any template.
How do I acknowledge ResRef?
The templates have no formal citation. Instead, if a template helped your work, you may add a short acknowledgement such as “The authors gratefully acknowledge ResRef (www.resref.com) for providing the templates and supporting resources used in the preparation of this work.”
Need help with your study? You can also ask the ResRef team for free expert research consultation.
Licence and copyright
These templates are free to use for academic, educational and research purposes only.Commercial use, resale or unauthorised commercial distribution is prohibited.Copyright in original ResRef content, designs and template adaptations remains with ResRef.Any third-party content (for example reporting guidelines and checklists such as CARE, STROBE, CONSORT and PRISMA) remains subject to its original copyright and licence conditions.Acknowledging ResRef
These templates have no formal citation. If they helped your work, you may include this acknowledgement:
The authors gratefully acknowledge ResRef (www.resref.com) for providing the templates and supporting resources used in the preparation of this work.
Key takeaways
The codebook variable dictionary template is free for academic, educational and research use.Read the guide and its completed example before you fill in the template.Check your institution or journal rules, and use the checklist before you submit.