Practical guideMethodology & analyticsAll disciplines

SPSS, SAS, R, Stata, Python or JASP? Choosing statistical software for doctoral research

A feature-by-feature comparison of six statistics programs, updated from our 2018 four-program table, and a way to choose the one that fits your analysis, your discipline and the need to make your results reproducible.

What you will learn

  • Compare SPSS, SAS, R, Stata, Python and JASP on the features that matter in a doctoral project
  • Explain the difference between menu-driven and script-based analysis and why scripts aid reproducibility
  • Choose software by working back from your analysis plan, data size and discipline
  • Distinguish licensing models and plan for access after you graduate
  • Report the software and version you used so that your analysis can be repeated

What you will unlearn

  • The best statistics package is the one with the most procedures.The best package is the one that runs your planned analysis correctly and lets you, and others, repeat it.
  • Menu-driven software cannot be reproducible.SPSS, Stata and JASP all record or paste the commands behind menu choices; the habit of saving them is what matters.
  • Free software is less trustworthy than commercial software.R and Python are used for published statistical methods worldwide; trust comes from checking code and output, not price.
  • Software interprets the results for you.Every package reports numbers; interpreting effect sizes, uncertainty and assumptions remains the researcher's job.

Skills you will practise

  • Matching software to analysis
  • Writing analysis scripts
  • Reproducible workflows
  • Data import and export
  • Reporting software versions
  • Planning licence access

Why the choice matters, and why it matters less than you think

Most doctoral researchers inherit their statistics software from a supervisor, a department licence or a methods course. That is a sensible starting point, because help is close at hand. But the choice has consequences: it shapes which analyses are easy, how you document your work, and whether you can still open your analysis after your university licence ends.

It also matters less than many students fear. A linear model, a t-test or a logistic regression gives the same estimates in every mainstream package when the model is specified the same way. Errors in theses rarely come from the software; they come from mis-specified models, undocumented data cleaning and flexible analysis choices made after seeing the data (Simmons et al., 2011). The comparison below should help you choose, but the habits in the later sections matter more.

Comparison of four statistics programs: SPSS, SAS, R and Stata
Figure 1. Four widely used statistics programs.

Fourteen features compared

The table compares SPSS, SAS, R and Stata on fourteen features, with two more programs (Python, which is now common in data science and computational social science, and JASP, a free menu-driven package). Prices are replaced by licensing models, because prices vary by country, edition and academic status and change often.

Table 1. Fourteen features of six statistics programs (updated from the 2018 four-program comparison)
FeatureSPSSSASRStataPythonJASP
Executing commandsMenus, with syntax that can be pasted and savedPrograms (SAS code) or SAS Studio tasksScriptsCommands, do-files and menusScripts and notebooksMenus; results update live
Ease of learningEasy for standard testsSteepModerate to steepModerateModerate to steepEasy
Menu-bar proceduresExtensiveAvailable through task interfacesFew in base R; front ends such as jamovi existDialogs for most commandsNone in core librariesAll analyses
Range of proceduresBroad for standard methods; add-on modulesVery broad, strong in clinical and survey workWidest, through contributed packagesBroad, strong in econometrics and epidemiologyBroad for modelling and machine learning; fewer specialist testsCommon frequentist and Bayesian tests
Range of output optionsOutput viewer; tables and chartsMany output destinationsAny format through packagesLogs and exportable tablesAny format through librariesPublication-style tables
Changing output formatsTable templatesOutput delivery systemFully programmableProgrammableFully programmableLimited options
Graphical outputGood standard chartsGoodExcellent and fully customisableGoodExcellent and fully customisableGood standard plots
Large data setsAdequateStrong; processes data from diskIn memory by default; packages for larger dataIn memory; editions differ in limitsStrong with suitable librariesSmall to medium data
Importing dataCommon formatsVery wideVery wideWideVery wideCSV and common formats
Exporting resultsOffice formats and PDFWideAny, including reportsWideAny, including reportsCopy or export tables
Interpreting dataReports results; interpretation is yoursSameSameSameSameSame; annotations help learners
Manipulating dataGood through menus or syntaxStrongStrongStrongStrongBasic; prepare data elsewhere
DocumentationManuals and vendor supportExtensive manualsPackage documentation and large communityExtensive manualsLibrary documentation and large communityGuides and community forum
LicensingCommercial licenceCommercial; free cloud edition for learnersFree and open sourceCommercial; perpetual or annualFree and open sourceFree and open source

Two corrections to the 2018 version deserve emphasis. Stata does have menus and dialog boxes, and each one shows the command it runs, which is a good way to learn the syntax. And no package "interprets" data: software reports estimates and p-values, but a p-value does not measure the size or importance of an effect (Wasserstein & Lazar, 2016).

How to choose: work back from the analysis

  1. Write the analysis plan first. List the models you expect to fit: regression, multilevel models, structural equation models, survival analysis, Bayesian models or machine learning. Then check which packages run each one well.
  2. Check your discipline's habits. Economists and epidemiologists often use Stata; clinical trial statisticians and the pharmaceutical industry often use SAS; psychologists and many social scientists use SPSS, R or JASP; computational fields use R and Python. Shared software makes help and code easier to find.
  3. Consider data size and type. Large administrative or text data may push you towards SAS, R or Python. Survey data with complex weights needs a package that handles the design correctly.
  4. Consider access after the PhD. A free tool goes with you; a commercial licence may not.
  5. Prefer a scriptable workflow. Whatever the program, save the commands that produce every number in the thesis.

JASP deserves a note for Bayesian work: it puts Bayesian versions of common tests beside their frequentist counterparts, which lowers the barrier to an approach that is increasingly used across the sciences (van de Schoot et al., 2021). For more complex Bayesian models, R or Python offer more control.

Access, cost and support

The 2018 table listed prices. They are not repeated here, because they differ by country, edition and academic status, and vendors revise them often. Check three practical questions instead.

  • What does your university provide? Many institutions hold site licences for SPSS, SAS or Stata, sometimes only on campus machines or through a virtual desktop. Ask the IT service which versions are available and whether home use is allowed.
  • What happens after submission? Corrections and journal revisions often come months after a licence ends. If you analyse in a commercial package, export clean data and keep your syntax in plain text, so that the work can be rerun elsewhere if needed.
  • Where will help come from? Your supervisor, your department's methods courses and online communities are the main sources of support. A package that nobody around you uses can cost weeks of self-teaching.

Learning a second tool is often worthwhile. Many researchers use a menu-driven package to explore data and check assumptions quickly, and a scripted language for the final analysis and figures. The risk lies in mixing them carelessly: if numbers in one chapter come from SPSS and in another from R, make sure the data version, exclusions and model settings are the same, and say in the methods chapter which tool produced which results.

Worked example: the same regression in five programs (illustrative)

Suppose a data set has an outcome score, a treatment indicator group coded 0 or 1, and a covariate age. A linear regression of score on group and age looks like this in each scripted environment. JASP, as a menu-driven program, would run the same model from its Regression menu.

Illustrative commands for one linear regression
ProgramCommand
Rlm(score ~ group + age, data = d)
Python (statsmodels)smf.ols("score ~ group + age", data=d).fit()
Stataregress score i.group age
SPSS syntaxREGRESSION /DEPENDENT score /METHOD=ENTER group age.
SASproc reg data=d; model score = group age; run;

The estimates will agree. What differs is what surrounds them: how the data were cleaned, which cases were excluded, and whether those steps were recorded. Organising data in a consistent, tidy structure, with one variable per column and one observation per row, makes analysis easier in every package (Wickham, 2014). Related walkthrough: running and checking a regression in Python with statsmodels.

Whatever you choose: make the analysis reproducible

Computational results should be reproducible from the original data and code (Peng, 2011). Even in statistics journals, published results are often hard to reproduce from the materials provided (Xiong & Cribben, 2023). A doctoral analysis can avoid that from the start.

  • Keep raw data read-only and do all cleaning in a script or syntax file (Sandve et al., 2013).
  • Save one script per stage (cleaning, descriptive analysis, models, figures) and run them in order.
  • Record the software, version and any add-on packages used, and report them in the methods chapter; reporting standards expect enough detail for others to repeat the analysis (Appelbaum et al., 2018).
  • Use version control, or at least dated copies, for scripts.
  • Present results as graphs where they communicate better than tables (Gelman et al., 2002).

See also what a journal statistical reviewer checks and types of quantitative research design.

Common mistakes

  • Choosing software before writing the analysis plan.
  • Running analyses through menus without saving the syntax, so results cannot be reproduced.
  • Switching packages midway without checking that the models are specified identically.
  • Not recording software and package versions in the thesis.
  • Relying on a university licence without a plan for revisions after it ends.
  • Treating the output as the interpretation instead of reporting effect sizes and uncertainty.

Key takeaways

  • Mainstream packages give the same estimates for the same model; the choice affects workflow more than results.
  • Choose by working back from your analysis plan, your discipline and your access after the PhD.
  • Save scripts or syntax for every result, whatever the program (Sandve et al., 2013; Peng, 2011).
  • Report software, versions and packages so that the analysis can be repeated (Appelbaum et al., 2018).
  • Software reports numbers; interpretation of effect sizes and uncertainty remains yours (Wasserstein & Lazar, 2016).
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. Appelbaum, M., Cooper, H., Kline, R. B., Mayo-Wilson, E., Nezu, A. M., & Rao, S. M. (2018). Journal article reporting standards for quantitative research in psychology: The APA Publications and Communications Board task force report. American Psychologist, 73(1), 3–25. https://doi.org/10.1037/amp0000191
  2. Gelman, A., Pasarica, C., & Dodhia, R. (2002). Let's practice what we preach: Turning tables into graphs. The American Statistician, 56(2), 121–130. https://doi.org/10.1198/000313002317572790
  3. Peng, R. D. (2011). Reproducible research in computational science. Science, 334(6060), 1226–1227. https://doi.org/10.1126/science.1213847
  4. 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
  5. 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
  6. van de Schoot, R., Depaoli, S., King, R., Kramer, B., Märtens, K., Tadesse, M. G., Vannucci, M., Gelman, A., Veen, D., Willemsen, J., & Yau, C. (2021). Bayesian statistics and modelling. Nature Reviews Methods Primers, 1, 1. https://doi.org/10.1038/s43586-020-00001-2
  7. 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
  8. Wickham, H. (2014). Tidy data. Journal of Statistical Software, 59(10). https://doi.org/10.18637/jss.v059.i10
  9. Xiong, X., & Cribben, I. (2023). The state of play of reproducibility in statistics: An empirical analysis. The American Statistician, 77(2), 115–126. https://doi.org/10.1080/00031305.2022.2131625

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. (2018, September 28). SPSS, SAS, R, Stata, Python or JASP? Choosing statistical software for doctoral research. PhD Research Lab. https://www.phdassistance.com/blog/14-contrasting-features-of-top-4-statistics-programs/

PhD Research Lab Academy. “SPSS, SAS, R, Stata, Python or JASP? Choosing Statistical Software for Doctoral Research.” PhD Research Lab, 28 Sept. 2018, www.phdassistance.com/blog/14-contrasting-features-of-top-4-statistics-programs. Accessed [access date].

PhD Research Lab Academy (2018) SPSS, SAS, R, Stata, Python or JASP? Choosing statistical software for doctoral research. PhD Research Lab. Available at: https://www.phdassistance.com/blog/14-contrasting-features-of-top-4-statistics-programs/ (Accessed: [access date]).

PhD Research Lab Academy. “SPSS, SAS, R, Stata, Python or JASP? Choosing Statistical Software for Doctoral Research.” PhD Research Lab. September 28, 2018. https://www.phdassistance.com/blog/14-contrasting-features-of-top-4-statistics-programs.

PhD Research Lab Academy, ‘SPSS, SAS, R, Stata, Python or JASP? Choosing Statistical Software for Doctoral Research’ (PhD Research Lab, 28 September 2018) <https://www.phdassistance.com/blog/14-contrasting-features-of-top-4-statistics-programs> accessed [access date].

PhD Research Lab Academy. SPSS, SAS, R, Stata, Python or JASP? Choosing statistical software for doctoral research [Internet]. PhD Research Lab; 2018 Sep 28 [cited [access date]]. Available from: https://www.phdassistance.com/blog/14-contrasting-features-of-top-4-statistics-programs/

PhD Research Lab Academy, “SPSS, SAS, R, Stata, Python or JASP? Choosing statistical software for doctoral research,” PhD Research Lab, Sept. 28, 2018. [Online]. Available: https://www.phdassistance.com/blog/14-contrasting-features-of-top-4-statistics-programs. [Accessed: [access date]].

@online{14_contrasting_features_of_top_4_statistics_programs_2018,
  author = {{PhD Research Lab Academy}},
  title = {{SPSS, SAS, R, Stata, Python or JASP? Choosing statistical software for doctoral research}},
  organization = {PhD Research Lab},
  date = {2018-09-28},
  url = {https://www.phdassistance.com/blog/14-contrasting-features-of-top-4-statistics-programs},
  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.

SPSS, SAS, R, Stata, Python or JASP? Choosing statistical software for doctoral Need help applying it to your study?
Quantitative analysis