How do I document analysis decisions?
A supervisor's follow-up question, a reviewer's comment, or a missing value shortly before submission can quickly turn a minor analysis decision into a major problem. If you are wondering, "How do I document analysis decisions?", you don't need an overly burdensome bureaucracy, but a clear system. It makes your evaluation transparent, protects against contradictions, and makes writing the methods and results section considerably easier.
Especially in final theses, dissertations, and publications, documentation often happens too late. Then it is no longer clear why certain cases were excluded, variables transformed, or covariates included. Proper decision documentation records the path from the raw data to the reported result. This is scientifically convincing and saves a noticeable amount of work under time pressure.
Why analysis decisions must be documented
Statistical evaluations do not only consist of the final test. Before every regression, t-test, and mixed model, there are decisions: How are missing values handled? Which outlier rule applies? Which scale values are created? Which assumptions are checked, and what happens when they are violated?
Many of these decisions are professionally legitimate. It becomes critical when they are made only after reviewing the results and can no longer be justified later. Without a protocol, an analysis quickly seems arbitrary, even if it was carried out methodologically correctly. With a documented justification, on the other hand, you show that your decisions were theory-guided, transparent, and consistent.
This is also crucial for reproducibility. A second person should be able to understand which data version was used, which steps were carried out, and why a certain method was chosen. For a thesis, a complete open-science archive is usually not enough. However, a traceable, internally maintained analysis protocol is the professional minimum standard.
How do I document analysis decisions effectively?
The best solution is a continuous decision protocol. Do not start with this only when writing the results section, but before you clean the data. Every relevant decision receives a short entry with the date, context, justification, and consequence for the analysis.
An entry does not have to be long. The important thing is that it is precise enough to still be understood weeks later. Instead of "Outliers removed", it is better to document: "Two reaction time values were more than 3 SD above the mean. They were excluded according to a pre-established rule; sensitivity analysis with all cases led to the same conclusion." This makes both the rule and the impact transparent.
A good protocol always answers four questions: What was decided? Why was it decided? Which data or variables does it refer to? What consequences does the decision have for the subsequent analyses? If these four points are clear, the step can be cleanly presented later in the methods, results, or appendix.
The most important fields in the decision protocol
For most research projects, a simple table in a document, spreadsheet, or directly in the analysis script is sufficient. At least the following information is useful:
- Date and version of the dataset
- Research question or affected variable
- concrete decision or analysis step carried out
- methodological or professional justification
- rule used, threshold values, or source citation
- impact on sample, model, or result
- reference to code, output, or saved analysis version
These decisions are particularly often forgotten
In practice, it is often not the major methodological decisions that are missing, but the small intermediate steps. Exactly these can be difficult to explain later. You should document the data cleaning particularly carefully. This includes exclusions due to incomplete participation, implausible values, multiple entries, or missing consent.
The handling of missing values also needs a clear justification. Listwise deletion can be justifiable, for example with a few randomly missing values. For more extensive or systematic dropouts, multiple imputation may be more appropriate. Which solution fits depends on the extent, pattern, and possible mechanism of the missing data. Therefore, do not only note the chosen method, but also the diagnostic considerations behind it.
Other typical documentation gaps concern scale creation and recoding. Was an inverted item correctly reverse-coded? How many valid responses were required for a scale value? Were categorical variables collapsed? Such steps change the basis of every subsequent analysis and belong in the protocol.
In models, selection decisions are central: Which predictors were included? Why were age, gender, or time of measurement included as covariates? Was an interaction effect tested based on theory, or only added after a striking main finding? An effect tested exploratorily after the fact is no less valuable. It just needs to be designated as exploratory, instead of appearing as a pre-confirmed hypothesis test.
Pre-determining and deciding retrospectively: clearly separate both
Ideally, you define hypotheses, primary endpoints, exclusion criteria, and main analyses before data analysis. For clinical, medical, or publication-oriented projects, pre-registration can be useful or even expected. In many student papers, it is not mandatory, but a written preliminary plan remains very helpful.
However, research does not always go according to plan. A dataset may contain unexpected coding errors, assumptions may be violated, or a theoretically relevant pattern may only become visible during exploration. Then the analysis may and should be adapted. The problem is not the adaptation, but a retrospective presentation as if everything had been planned from the beginning.
Therefore, clearly separate confirmatory and exploratory steps in the protocol and later in the text. Phrasings such as "pre-determined", "decided after data review", or "additional sensitivity analysis" create clarity. This transparency increases your credibility far more than the attempt to tell a perfectly linear analysis story.
Link documentation directly with code and output
Anyone working with R, Python, Stata, or SPSS syntax should document decisions as close to the code as possible. Do not only comment on what a command technically executes, but also why this step was chosen. A comment such as "linear regression despite slight deviation from normality of residuals, as visual diagnostics are unremarkable and the sample is sufficiently large" is clearly more valuable later than a pure command line.
Also save versions consistently. Raw data are not overwritten. Cleaned data, analysis data, scripts, outputs, and figures receive traceable filenames with a date or version number. This prevents results from an old data version from accidentally being transferred into the paper.
This is just as important with menu-driven software such as SPSS, JASP, or Jamovi. Save the syntax or export the analysis, back up the output file, and note the settings in the protocol. A screenshot can complement this, but does not replace a clear justification.
How the protocol becomes a convincing methods section
The decision protocol is a working document, not a text that is copied entirely into the thesis. In the methods section, you report the central rules and procedures: inclusion and exclusion criteria, data preparation, scale creation, handling of missing values, checking of assumptions, and the planned main analyses.
In the results, you then document the actual sample and the results of relevant tests. If a planned approach was changed due to a data peculiarity, the justification belongs in the appropriate place. Detailed tables, sensitivity analyses, or additional diagnostics can go into the appendix. This keeps the main text readable without losing important information.
Pay attention to consistency. If an exclusion criterion is stated in the methods section, the reported case number must match it. If you mention a covariate, it should appear in the model output. Such checks seem trivial, but they are one of the most common quality differences between a hastily completed and a scientifically robust evaluation.
When external statistical advice is useful
For complex datasets, a general protocol is not always enough. This applies, for example, to longitudinal data, multiple imputation, propensity scores, multivariate models, clinical endpoints, or contradictory requirements from supervisors and journals. Here, not only documentation determines the quality, but already the correct methodological course.
Individual advice can help align the analysis plan, decision protocol, syntax, and report together. At Easy Statistik, PhD statisticians discreetly and transparently accompany research projects - from the methodological initial assessment to the evaluable documentation. If you are stuck on a concrete decision, you can describe your research question and data situation via the contact form.
A good decision protocol does not take away the responsibility for your research. It does, however, give you the certainty to justify every methodological step - exactly when your work is being read critically.