How-to articleMethodology & analyticsAll disciplines

Data analytics for doctoral research: planning, preparing and analysing data you can defend

Good doctoral analysis starts long before the first model is fitted. This guide shows how to write an analysis plan, choose tools, organise and clean data, handle missing values, match methods to questions, use machine learning carefully, and report the work so that examiners can follow every step.

What you will learn

  • Write an analysis plan that links each research question to data, variables and a method
  • Choose analysis software for reproducibility, not convenience alone
  • Organise, screen and clean data while keeping an auditable record of every change
  • Explain missing-data mechanisms and when multiple imputation is appropriate
  • Match common statistical and machine learning methods to the question being asked
  • Report analyses so that an examiner could reproduce the main results

What you will unlearn

  • Data analytics only matters if you have big data.The same principles of planning, cleaning and honest reporting apply to a 200-row survey and a million-row log file.
  • Outliers should be deleted so the results look clean.Outliers are investigated first; many are genuine values, and deleting them without a rule biases results.
  • A p-value below 0.05 shows that the finding is real and important.A p-value measures incompatibility with a model, not the size, importance or probability of the effect.
  • Machine learning gives more objective results than traditional statistics.Machine learning answers prediction questions and is easily inflated by leakage; it does not remove the need for design.

Skills you will practise

  • Analysis planning
  • Tidy data organisation
  • Data screening and cleaning
  • Missing data handling
  • Choosing statistical methods
  • Validating predictive models
  • Reproducible reporting

What data analytics means in a doctorate

In a doctoral project, data analytics is the whole chain of work that turns raw observations into defensible answers to research questions: designing what will be measured, organising and checking the data, choosing and running analyses, and reporting them so that others can check the reasoning. It draws on statistics, computing and knowledge of the subject, and it applies whether the data set is a small survey, an experiment, routinely collected records or a large text or sensor corpus.

Examiners rarely fail a thesis for using a simple method. They do question analyses that do not fit the question, results that cannot be traced back to the data, and conclusions stronger than the evidence. The rest of this guide follows the order in which those problems are best prevented: plan, prepare, analyse, report.

Quantitative and qualitative analyses answer different kinds of question. Quantitative analysis estimates quantities and relationships, such as how much an outcome differs between groups. Qualitative analysis, of interviews, observation or documents, examines meanings, processes and contexts. Both need planning and transparent records; this guide concentrates on quantitative and computational work, which is where most data-handling errors arise.

Start with an analysis plan

An analysis plan is a short document, written before the main data are analysed, that links each research question to the data, variables and method that will answer it. It forces decisions that are otherwise made quietly after seeing the data: which outcome is primary, which covariates are included, how missing values and outliers will be handled, and what would count as support for a hypothesis.

These decisions matter because flexibility inflates false positives. Simmons et al. (2011) showed that undisclosed choices, such as when to stop collecting data, which variables to control for and which conditions to report, make it easy to present almost any result as statistically significant. Nosek et al. (2018) argue that preregistering the questions and analysis plan separates confirmatory tests from exploratory analysis; exploration is still welcome, but it is labelled as such.

The plan should also justify the sample size. Lakens (2022) sets out six ways to do so, from measuring the whole population and working within resource constraints to a priori power analysis and planning for a desired precision, and asks researchers to state which effect sizes would be meaningful in their field.

  1. State each research question and, for confirmatory questions, the hypothesis.
  2. Define the primary and secondary outcomes and the key exposure or predictor.
  3. Describe the design, the data source and the unit of analysis.
  4. Justify the sample size or explain the constraint.
  5. Name the main method and the assumptions to be checked.
  6. Set rules for missing data, outliers and data exclusions.
  7. List planned sensitivity analyses and which analyses are exploratory.

Choose tools for reproducibility

The choice of software matters less than whether the analysis can be rerun. Analyses carried out by clicking through menus are hard to repeat exactly; scripted analyses can be checked, corrected and rerun when the data change. Sandve et al. (2013) recommend recording how every result was produced, avoiding manual data manipulation, archiving the exact versions of software, using version control and recording random seeds. Most of the packages below can be scripted, including SPSS through syntax.

Common analysis tools and how doctoral researchers use them
ToolTypical doctoral usePoints to consider
RStatistical modelling, graphics, reproducible reportsFree; large package ecosystem; steeper start
PythonData processing, machine learning, text and image dataFree; strong for pipelines; statistical output needs care
SPSS, Stata, SASSurvey, clinical and econometric analysisLicensed; use syntax or do-files, not menus alone
SQL databasesStoring and querying large or linked recordsKeeps raw data separate from analysis
Tableau, Power BIDashboards and exploratory visualisationNot designed for inferential statistics; do not report results from them alone
NVivo, ATLAS.ti, MAXQDAOrganising qualitative codingSupport analysis; they do not do it for you

Choose the tool your supervisors and discipline can review, learn it early on a pilot data set, and keep the scripts with the thesis records.

Organise, screen and clean the data

Most analysis time is spent preparing data, and most serious errors enter here. Begin with structure. Wickham (2014) describes "tidy" data: each variable forms a column, each observation forms a row and each type of observational unit forms a table. Broman and Woo (2018) add practical rules for spreadsheets: be consistent with codes and names, put one value in each cell, write dates as YYYY-MM-DD, never use colour to store information, keep a data dictionary, do not calculate in the raw data file, and back the file up.

Van den Broeck et al. (2005) describe cleaning as three repeated steps: screening for suspect values, diagnosing whether each one is an error, a true extreme or unclear, and editing (correcting, deleting or leaving it) according to rules set in advance, with every change documented. General data science texts list similar activities: handling missing values, investigating outliers, removing duplicates and validating values against plausible ranges (Ault et al., 2025), with transformation, reduction, integration and format conversion as further preprocessing steps where the analysis needs them (Joshi & Patel, 2020). Rescaling or normalising variables is one such transformation, required by some methods but not a universal cleaning step.

Keep the raw data read-only and do all cleaning in scripts that produce a new file, so that any decision can be reversed. Where funders or journals ask for data sharing, the FAIR principles of Wilkinson et al. (2016) (findable, accessible, interoperable, reusable) are a useful standard for documentation and metadata, within the limits of consent and data protection.

Missing data

Missing values are rarely harmless. Their effect depends on why they are missing: completely at random (MCAR), at random given the observed data (MAR), or not at random, where missingness depends on the unobserved values themselves (MNAR). Deleting incomplete cases is unbiased only under restrictive conditions and wastes information. Multiple imputation creates several plausible completed data sets, analyses each and combines the results, so that uncertainty about the missing values is carried into the standard errors (van Buuren, 2018). Sterne et al. (2009) warn that it can still mislead if the imputation model omits important variables or the MAR assumption is implausible, and recommend reporting how much data were missing, the reasons, the imputation model and a comparison with complete-case results.

Match the method to the question

Choose methods from the question and the structure of the data, not from what is familiar. The table gives common starting points; each method has assumptions that must be checked and reported.

Starting points for common doctoral questions
QuestionTypical methodsCheck before relying on it
What does the sample look like?Descriptive statistics, frequency tables, plotsDistributions, implausible values, missingness
Do groups differ on an outcome?t-test, ANOVA, non-parametric equivalentsIndependence, variance, distribution of residuals
How are variables related, allowing for others?Linear, logistic or Poisson regressionFunctional form, influential points, confounding
Do items measure underlying constructs?Exploratory and confirmatory factor analysisSample size, model fit, measurement invariance
How long until an event occurs?Kaplan-Meier curves, Cox regressionCensoring, proportional hazards
How well can an outcome be predicted?Penalised regression, tree ensembles, neural networksLeakage, validation, calibration

Whatever the method, report effect sizes with confidence intervals rather than relying on p-values. The American Statistical Association statement stresses that a p-value does not measure the probability that a hypothesis is true or the size or importance of an effect, and that conclusions should not rest on whether it passes a threshold (Wasserstein & Lazar, 2016).

Machine learning with care

Machine learning is suited to prediction and pattern-finding, not to explaining causes. Its main risk in doctoral work is leakage: information from the test data reaching the model during training, for example by scaling or selecting features on the full data set before splitting, or by using future information to predict the past. Kapoor and Narayanan (2023) documented leakage across many fields that use machine learning and showed how it inflates reported performance. Keep a test set untouched until the end, do all preprocessing inside cross-validation, and compare against a simple baseline model. For health prediction models, the TRIPOD+AI statement sets out what to report whether the model uses regression or machine learning (Collins et al., 2024).

Illustrative walkthrough: from question to analysis

Question. A doctoral researcher in education asks whether first-year students who join a peer-mentoring scheme are more likely to continue into their second year than similar students who do not, using anonymised institutional records for three cohorts.

Plan. The primary outcome is continuation (yes or no); the exposure is joining the scheme. Because students choose to join, the researcher lists likely confounders in advance (entry qualifications, subject, mode of study, age group) and records that the study can show association, not proof of cause. The sample is fixed by the available cohorts, so the plan reports the precision this allows rather than claiming power for an arbitrary effect (Lakens, 2022).

Preparation. Records are joined by an anonymous identifier in a script; duplicates are removed by rule; impossible ages are queried with the data provider rather than deleted (Van den Broeck et al., 2005). Entry qualifications are missing for some students, more often for mature entrants, so the plan uses multiple imputation including the outcome and all model variables, and reports a complete-case analysis alongside it (Sterne et al., 2009).

Analysis and reporting. A regression model gives the adjusted association with a 95% confidence interval, together with the difference in continuation percentages so that readers see the absolute size of any effect. Sensitivity analyses, such as excluding one cohort, are labelled as planned or exploratory (Nosek et al., 2018). The scripts, data dictionary and cleaning log are kept for the examiners.

What to report

A useful test for the methods and results chapters is whether a competent reader could reproduce the main numbers from what you describe. The checklist below covers the essentials; discipline-specific reporting guidelines add to it.

Minimum reporting set for a doctoral quantitative analysis
ReportWhy it matters
Data source, dates, inclusion and exclusion rulesReaders can judge who the results apply to
Flow of cases from raw data to analysis sampleShows what was lost at each step and why
Variable definitions and coding (data dictionary)Makes measures reproducible
Amount and handling of missing dataMissingness can bias results
Methods, software and versions, and assumption checksLets others repeat and critique the analysis
Effect sizes with confidence intervalsShows magnitude and precision, not just significance
Which analyses were planned and which exploratoryPrevents overstated confirmatory claims
For predictive models: validation method and performance on unseen dataGuards against leakage and overfitting

Common mistakes

  • Starting analysis before writing down the questions, outcomes and rules for exclusions.
  • Editing the raw data file by hand, so that changes cannot be traced or undone.
  • Deleting outliers or incomplete cases without a stated rule.
  • Running many tests and reporting only the significant ones.
  • Reading a non-significant result as evidence of no effect.
  • Scaling or selecting features on the whole data set before splitting it for machine learning.
  • Presenting dashboard charts as if they were statistical tests.
  • Leaving software versions, scripts and seeds out of the record.

None of these mistakes requires advanced statistics to avoid. They are prevented by planning, by scripted and documented preparation, and by reporting what was done, including what did not work.

Key takeaways

Your next step

Want to apply this to your own study?

  1. 1Tell us your topic, data and deadline
  2. 2A statistician reviews your work with you
  3. 3You get a plan and a quote
Quantitative analysis

References

  1. Ault, S. V., Nam Liao, S., & Musolino, L. (2025). Data cleaning and preprocessing. In Principles of data science (Section 2.4). OpenStax. https://openstax.org/books/principles-data-science/pages/2-4-data-cleaning-and-preprocessing
  2. Broman, K. W., & Woo, K. H. (2018). Data organization in spreadsheets. The American Statistician, 72(1), 2–10. https://doi.org/10.1080/00031305.2017.1375989
  3. Collins, G. S., Moons, K. G. M., Dhiman, P., Riley, R. D., Beam, A. L., Van Calster, B., Ghassemi, M., Liu, X., Reitsma, J. B., van Smeden, M., Boulesteix, A.-L., Camaradou, J. C., Celi, L. A., Denaxas, S., Denniston, A. K., Glocker, B., Golub, R. M., Harvey, H., Heinze, G., . . . Logullo, P. (2024). TRIPOD+AI statement: Updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ, 385, e078378. https://doi.org/10.1136/bmj-2023-078378
  4. Joshi, A. P., & Patel, B. V. (2020). Data preprocessing: The techniques for preparing clean and quality data for data analytics process. Oriental Journal of Computer Science and Technology, 13(2–3), 78–81. https://doi.org/10.13005/ojcst13.0203.03
  5. Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), 100804. https://doi.org/10.1016/j.patter.2023.100804
  6. Lakens, D. (2022). Sample size justification. Collabra: Psychology, 8(1), 33267. https://doi.org/10.1525/collabra.33267
  7. Nosek, B. A., Ebersole, C. R., DeHaven, A. C., & Mellor, D. T. (2018). The preregistration revolution. Proceedings of the National Academy of Sciences, 115(11), 2600–2606. https://doi.org/10.1073/pnas.1708274114
  8. Sandve, G. K., Nekrutenko, A., Taylor, J., & Hovig, E. (2013). Ten simple rules for reproducible computational research. PLoS Computational Biology, 9(10), e1003285. https://doi.org/10.1371/journal.pcbi.1003285
  9. Simmons, J. P., Nelson, L. D., & Simonsohn, U. (2011). False-positive psychology: Undisclosed flexibility in data collection and analysis allows presenting anything as significant. Psychological Science, 22(11), 1359–1366. https://doi.org/10.1177/0956797611417632
  10. Sterne, J. A. C., White, I. R., Carlin, J. B., Spratt, M., Royston, P., Kenward, M. G., Wood, A. M., & Carpenter, J. R. (2009). Multiple imputation for missing data in epidemiological and clinical research: Potential and pitfalls. BMJ, 338, b2393. https://doi.org/10.1136/bmj.b2393
  11. van Buuren, S. (2018). Flexible imputation of missing data (2nd ed.). Chapman & Hall/CRC. https://stefvanbuuren.name/fimd/
  12. Van den Broeck, J., Argeseanu Cunningham, S., Eeckels, R., & Herbst, K. (2005). Data cleaning: Detecting, diagnosing, and editing data abnormalities. PLoS Medicine, 2(10), e267. https://doi.org/10.1371/journal.pmed.0020267
  13. Wasserstein, R. L., & Lazar, N. A. (2016). The ASA statement on p-values: Context, process, and purpose. The American Statistician, 70(2), 129–133. https://doi.org/10.1080/00031305.2016.1154108
  14. Wickham, H. (2014). Tidy data. Journal of Statistical Software, 59(10). https://doi.org/10.18637/jss.v059.i10
  15. Wilkinson, M. D., Dumontier, M., Aalbersberg, I. J., Appleton, G., Axton, M., Baak, A., Blomberg, N., Boiten, J.-W., Bonino da Silva Santos, L., Bourne, P. E., Bouwman, J., Brookes, A. J., Clark, T., Crosas, M., Dillo, I., Dumon, O., Edmunds, S., Evelo, C. T., Finkers, R., . . . Mons, B. (2016). The FAIR Guiding Principles for scientific data management and stewardship. Scientific Data, 3, 160018. https://doi.org/10.1038/sdata.2016.18

How to cite this article

Choose your referencing style, then copy. Check your university's or journal's guide for local variations.

PhD Research Lab Academy. (2025, May 5). Data analytics for doctoral research: planning, preparing and analysing data you can defend. PhD Research Lab. https://www.phdassistance.com/academy/how-to-article/phd-data-analytics-guide/

PhD Research Lab Academy. “Data Analytics for Doctoral Research: Planning, Preparing and Analysing Data You Can Defend.” PhD Research Lab, 5 May 2025, www.phdassistance.com/academy/how-to-article/phd-data-analytics-guide. Accessed [access date].

PhD Research Lab Academy (2025) Data analytics for doctoral research: planning, preparing and analysing data you can defend. PhD Research Lab. Available at: https://www.phdassistance.com/academy/how-to-article/phd-data-analytics-guide/ (Accessed: [access date]).

PhD Research Lab Academy. “Data Analytics for Doctoral Research: Planning, Preparing and Analysing Data You Can Defend.” PhD Research Lab. May 5, 2025. https://www.phdassistance.com/academy/how-to-article/phd-data-analytics-guide.

PhD Research Lab Academy, ‘Data Analytics for Doctoral Research: Planning, Preparing and Analysing Data You Can Defend’ (PhD Research Lab, 5 May 2025) <https://www.phdassistance.com/academy/how-to-article/phd-data-analytics-guide> accessed [access date].

PhD Research Lab Academy. Data analytics for doctoral research: planning, preparing and analysing data you can defend [Internet]. PhD Research Lab; 2025 May 5 [cited [access date]]. Available from: https://www.phdassistance.com/academy/how-to-article/phd-data-analytics-guide/

PhD Research Lab Academy, “Data analytics for doctoral research: planning, preparing and analysing data you can defend,” PhD Research Lab, May 5, 2025. [Online]. Available: https://www.phdassistance.com/academy/how-to-article/phd-data-analytics-guide. [Accessed: [access date]].

@online{phd_data_analytics_guide_2025,
  author = {{PhD Research Lab Academy}},
  title = {{Data analytics for doctoral research: planning, preparing and analysing data you can defend}},
  organization = {PhD Research Lab},
  date = {2025-05-05},
  url = {https://www.phdassistance.com/academy/how-to-article/phd-data-analytics-guide},
  urldate = {[access date]}
}

This article is for learning. Use it to understand the method and cite the original sources above in your own work; do not copy or submit it as your own.

Data analytics for doctoral researchNeed help applying it to your study?
Quantitative analysis