The direct answer

To learn how to write a thesis data analysis plan before collecting data, work backwards from each research question. Name the data it needs, the variables or codes, the cleaning rules, the analysis steps, and the decision rules, then test the plan before collection begins.

Most thesis students meet analysis planning too late. The data are collected, the deadline is near, and only then do the hard questions arrive. Which variable answers this research question? What happens to half finished responses? Which test fits this design, and what if its assumptions fail? A plan written before collection answers those questions while the answers can still change what you collect.

This article is about the prospective plan, written before any data exist. It differs from planning analysis once data are in hand, which the guides to analysing quantitative data and analysing qualitative data cover. Here, nothing has been collected yet. That is the point. Every gap you find now is cheap to fix.

The system in short

  1. Link each research question to the exact data it needs.
  2. Define variables, codes and cleaning rules before collection.
  3. Set missing data handling and decision rules in advance.
  4. Test the plan on dummy or pilot material before you collect.
  5. Send the plan for supervisor review and record every change.

Start with a table, not with software. Give each research question one row. In that row, write the data the question needs, where those data will come from, and the analysis that will turn them into an answer. If a row cannot be completed, the question is not ready, and neither is the study.

Work question by question. A question about differences between groups needs group membership and an outcome measured the same way in each group. A question about relationships needs both variables measured for the same people. A question about how participants describe an experience needs accounts rich enough to analyse, which usually means open questions or interviews rather than tick boxes. The verb in the question points to the data. Difference, relationship, change, and description each demand something different.

This step protects your instruments. Every survey item, interview topic, and observation category should serve at least one row of the table. Items that serve no row are decoration, and decoration costs participant time. Rows with no item are worse. They are questions you cannot answer, discovered now while you can still add the missing item. Guidance on analysis plans makes the same point from the other direction: the plan should shape data collection, so that you collect all the data you need and use all the data you collect.

If a research question itself is vague, fix that first. A question that names no population, no outcome, and no comparison cannot be linked to data. The system for writing a research question helps you sharpen the question before you build the table around it. One hour spent here saves weeks later.

Step 2: Define variables, codes and cleaning rules

Now define what will exist in your analysis file. For quantitative work, list each variable with its name, its type, and how it will be scored. Note which items are reverse scored, which variables are calculated from others, and what counts as a valid value. A calculated variable needs its formula written down now, while you remember why you wanted it.

For qualitative work, the equivalent list is your coding approach. State whether codes will be built from the data, from an existing framework, or both. State whether coding will stay close to participants’ words or interpret underlying meaning. If you plan thematic analysis, name the phases you will follow. Braun and Clarke set out six phases, from familiarising yourself with the data through generating codes and themes to producing the report. Your plan does not need their method, but it does need named steps of that kind, chosen before the transcripts exist.

Then write the cleaning rules. How will you check for data entry errors? What range of values is impossible, and what will you do when one appears? How will duplicate responses be handled? For transcripts, how will names and identifying details be removed, and how will transcripts be checked against recordings? Cleaning rules written in advance are boring, and that is their virtue. They turn later arguments with yourself into decisions already made.

Keep a data dictionary from day one. One row per variable or code, with its definition and source.

Diagram: One row per research question

Step 3: Set missing data handling and decision rules

Decide now what happens when data are incomplete, because some data always are. For a survey, state how much missing information makes a response unusable, and how remaining gaps will be handled. For interviews, state what happens when a recording fails or a participant answers only part of the guide. The specific rule matters less than having one, written before you know whether it helps or hurts your results.

Then set the decision rules for the analysis itself. For quantitative work, this includes the significance level you will use, the effect size you will report alongside it, and the fallback method if the planned method’s assumptions are not met. Name the assumption checks you will run and what result would make you switch. A plan that says “a t test will be used” is half a plan. A plan that says what happens if the data are strongly skewed is a whole one.

For qualitative work, decision rules look different but serve the same purpose. State how themes will be reviewed against the coded extracts and the full data set. State how you will handle accounts that contradict your main pattern. Braun and Clarke advise retaining accounts that depart from the dominant story rather than smoothing them away. Writing that commitment now makes it easier to honour later, when a tidy story tempts you.

Separate planned analyses from exploratory ones. Analyses named in this plan are the ones your questions require. Anything you add after seeing the data is exploratory, and your write up should say so. That single label, applied honestly, answers the most common criticism of analysis plans: that the researcher kept testing until something worked. The separate guide to dealing with missing data goes deeper on the missing data rules themselves.

Step 4: Test the plan on dummy or pilot material

A plan that has never met data is a hope. Test it. Build a small dummy data set with invented values in the exact format your real data will take. Run every step of the plan on it. Score the scales. Run the planned tests. Fill in the table shells, the empty tables with rows and columns labelled, that your results chapter will need. Every step that fails on dummy data would have failed on real data, at a worse moment.

For qualitative work, test the plan on a short practice transcript or pilot interview. Code it using your planned approach. See whether the codes connect to your research questions or drift into interesting but unusable territory. Check that your transcription conventions keep the information your analysis needs. Braun and Clarke describe transcription as an interpretative act in which meanings are created, not a purely mechanical step. Your plan should state the conventions you will use, and the pilot shows whether they work.

Dummy testing also checks your sample logic. If the planned analysis needs a certain number of participants per group, the dummy run shows whether your recruitment target can supply it. If a planned comparison needs data from two time points, the dummy run shows whether your design collects both. These are design faults, and design faults are only fixable before collection. The wider system for running a pilot study covers piloting the instruments themselves. This step pilots the analysis.

Keep the dummy files. They become your analysis template. When real data arrive, you replace the invented values and run the same steps.

Step 5: Send the plan for review and record changes

Send the plan to your supervisor before collection begins. Ask for review of the table in Step 1 above all: does each question have data, and does each analysis answer its question? Supervisors spot mismatches quickly because they read the plan as examiners will. A test that does not match the question, a variable measured at the wrong level, a theme approach with no review step. Each catch now is a correction. Each catch after collection is a limitation paragraph.

Use the feedback process properly. The system in How to handle supervisor feedback on a thesis helps you sort comments into changes to make, points to discuss, and points to note. Apply the agreed changes to the plan, date the new version, and keep the old one. Version history is evidence that the plan guided the study rather than decorating it.

Plans do change, and honest change is not a fault. Data may arrive skewed, a group may recruit poorly, a code may split in two. When that happens, record the date, the change, and the reason in the plan itself. Report the change in your methodology. What damages a thesis is not change. It is silent change, where the reader cannot tell what was planned and what was improvised. A dated record turns improvisation into a defended decision.

Finally, look ahead to the end of the thesis. Your conclusion will summarise what the analysis found, question by question. The structure in How to write a thesis conclusion is easier to write when each question already has a planned answer route. The plan you write now becomes the map your conclusion follows.

A worked example: a survey and interview plan in two weeks

Your situation: You are planning a thesis on study habits, with a survey of students and follow up interviews. Collection starts in three weeks. You have two research questions and no analysis plan yet.

  • Days 1 to 2: Build the table. Question one compares study hours between two groups, so it needs group membership and weekly study hours. Question two explores how students describe planning, so it needs interview accounts.
  • Days 3 to 4: Define variables and codes. Study hours are recorded as a number. Interview coding will start from participants’ words, with themes reviewed against the full set of transcripts.
  • Day 5: Write the missing data rules. Survey responses missing the outcome item are excluded from question one. A failed recording means notes are used only if the consent form allows it.
  • Days 6 to 8: Build dummy data for 20 invented students. Run the planned comparison, fill the results table shell, and code one practice transcript. Find that study hours need a cap rule for impossible values.
  • Days 9 to 10: Send the plan and dummy outputs to your supervisor. Revise the cap rule and one interview topic that served no research question. Date version two and file version one.

Diagram: From research question to reported result

Collection starts on day 21 with instruments that match the questions and rules that match the data.

When it goes wrong

Your plan names software but no analyses. “Data will be analysed in a statistics package” answers nothing. Return to the table and give each question its method, its checks, and its fallback. Software is the last line of the plan, not the plan.

A research question has no matching data. You have three honest options. Add the missing item or topic before collection, narrow the question to what your data can answer, or drop the question. What you cannot do is collect first and hope the answer appears. Hope is not an analysis method.

The dummy run fails. Treat that as the system working. Find the step that broke, fix the rule or the instrument, and run the dummy again. A plan that fails twice on invented data and then holds is stronger than a plan never tested at all.

Your supervisor asks for major changes late in the two weeks. Sort the changes by whether they affect collection. Changes to instruments or sample must happen before collection, so they come first. Changes to reporting format can wait. The dated version record shows you responded in the right order.

Weekly review checklist

Use these questions while the plan is being built and tested:

  1. Does every research question have named data and a planned analysis?
  2. Are variables, codes and cleaning rules written down in a dictionary?
  3. Are missing data rules and decision rules set before collection?
  4. Has the plan survived a dummy or pilot run without breaking?
  5. Has my supervisor reviewed the plan, with changes dated and filed?

Downloadable infographic spec: one vertical image, title “How to write a thesis data analysis plan before collecting data”, with the 5 steps from “The system in short” and the 5 review questions above, in Thynq cream, Cloud Purple, Dark Purple and pink, with the Cloud mascot. Text taken word-for-word from this article.

What this system is not

It is not a claim that formal preregistration is required for every thesis. Requirements vary by institution, funder, and field, and this article did not verify a universal rule. It is not a substitute for your programme’s methodology guidance or your supervisor’s judgement. It is also not a guarantee that the planned analysis will fit the data you get. Plans meet reality, and reality sometimes wins. What the system gives you is a dated, tested route from question to answer, written while change was still cheap, with every later change recorded and explained.

Sources

  • Braun, V., & Clarke, V. (2006). Using thematic analysis in psychology. Qualitative Research in Psychology, 3(2), 77-101. Supports the six phases of thematic analysis, transcription as an interpretative act, and retaining accounts that depart from the dominant story.
  • ResearchCrave. (2026). Data analysis plan: How to write one, with template. Supports the six parts of a plan, table shells, separating confirmatory and exploratory analyses, and keeping a version history.
  • AskTheStatsProf. (2026). How to write a data analysis plan for a dissertation. Supports matching each research question to variables, a test, assumptions, a fallback, a significance level, and an effect size.

Questions

What should a thesis data analysis plan include?

For each research question, name the data needed, the variables or codes, the cleaning rules, the handling of missing data, the analysis steps, and the decision rules. Add the software or tools you will use and the tables or summaries you plan to report.

When should I write the analysis plan?

Write it before collecting data, while you can still change your instruments and sample. A plan written first shows which data each question needs. A plan written after collection can only work with what you happened to gather.

Can I change the plan after data collection starts?

Yes, when there is a good reason, such as data that do not fit the planned method. Keep the original plan, record the date and reason for each change, and report the change honestly in your methodology and results.

Do I need formal preregistration for a thesis?

Not unless your institution, funder, or journal requires it. A dated analysis plan reviewed by your supervisor still protects your work. Check your programme rules rather than assuming a universal requirement.