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.
- State each research question and, for confirmatory questions, the hypothesis.
- Define the primary and secondary outcomes and the key exposure or predictor.
- Describe the design, the data source and the unit of analysis.
- Justify the sample size or explain the constraint.
- Name the main method and the assumptions to be checked.
- Set rules for missing data, outliers and data exclusions.
- 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.
| Tool | Typical doctoral use | Points to consider |
|---|---|---|
| R | Statistical modelling, graphics, reproducible reports | Free; large package ecosystem; steeper start |
| Python | Data processing, machine learning, text and image data | Free; strong for pipelines; statistical output needs care |
| SPSS, Stata, SAS | Survey, clinical and econometric analysis | Licensed; use syntax or do-files, not menus alone |
| SQL databases | Storing and querying large or linked records | Keeps raw data separate from analysis |
| Tableau, Power BI | Dashboards and exploratory visualisation | Not designed for inferential statistics; do not report results from them alone |
| NVivo, ATLAS.ti, MAXQDA | Organising qualitative coding | Support 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.
| Question | Typical methods | Check before relying on it |
|---|---|---|
| What does the sample look like? | Descriptive statistics, frequency tables, plots | Distributions, implausible values, missingness |
| Do groups differ on an outcome? | t-test, ANOVA, non-parametric equivalents | Independence, variance, distribution of residuals |
| How are variables related, allowing for others? | Linear, logistic or Poisson regression | Functional form, influential points, confounding |
| Do items measure underlying constructs? | Exploratory and confirmatory factor analysis | Sample size, model fit, measurement invariance |
| How long until an event occurs? | Kaplan-Meier curves, Cox regression | Censoring, proportional hazards |
| How well can an outcome be predicted? | Penalised regression, tree ensembles, neural networks | Leakage, 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.
| Report | Why it matters |
|---|---|
| Data source, dates, inclusion and exclusion rules | Readers can judge who the results apply to |
| Flow of cases from raw data to analysis sample | Shows what was lost at each step and why |
| Variable definitions and coding (data dictionary) | Makes measures reproducible |
| Amount and handling of missing data | Missingness can bias results |
| Methods, software and versions, and assumption checks | Lets others repeat and critique the analysis |
| Effect sizes with confidence intervals | Shows magnitude and precision, not just significance |
| Which analyses were planned and which exploratory | Prevents overstated confirmatory claims |
| For predictive models: validation method and performance on unseen data | Guards 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
- Write an analysis plan before analysing the main data, and label exploratory work as exploratory (Nosek et al., 2018).
- Undisclosed analytic flexibility inflates false positives, so record and report your decisions (Simmons et al., 2011).
- Keep data tidy and raw files read-only, and clean them by documented rules (Wickham, 2014; Van den Broeck et al., 2005).
- Handle missing data according to its likely mechanism and report how you did it (Sterne et al., 2009).
- Report effect sizes and confidence intervals instead of relying on p-values (Wasserstein & Lazar, 2016).
- In machine learning, prevent leakage and validate on data the model has never seen (Kapoor & Narayanan, 2023).
