Data Analysis
Commands for descriptive statistics, hypothesis testing, regression, panel data, survey analysis, time-series methods, diagnostics, and postestimation.
A practical collection of quick-reference materials for students, instructors, and researchers using Stata for data management, statistical analysis, programming, and visualization.
The collection provides concise examples of frequently used Stata commands, syntax, workflows, and graphical options. Each section can serve as a quick reference during coursework or empirical research.
Commands for descriptive statistics, hypothesis testing, regression, panel data, survey analysis, time-series methods, diagnostics, and postestimation.
An introduction to macros, matrices, scalars, loops, stored results, temporary files, debugging, and exporting regression output.
Quick-reference commands for importing data, exploring variables, creating new variables, changing data types, summarizing observations, and applying logical conditions.
Examples of subsetting, recoding, labeling, reshaping, merging, appending, string manipulation, and exporting cleaned datasets.
Syntax and examples for scatterplots, histograms, bar charts, box plots, fitted lines, coefficient plots, marginal-effects plots, and combined figures.
Options for graph colors, text, marker symbols, line patterns, labels, legends, themes, plot regions, and exporting publication-ready figures.
Save the complete six-page PDF for use during class, research, data analysis, or independent Stata practice.
You can scroll through the document below before downloading it.
The preview may not display in every browser. Open the PDF in a new tab or use the download button above.
These cheat sheets were created by Tim Essam and Laura Hughes and were inspired by RStudio’s cheat-sheet resources.
The materials are shared under the Creative Commons Attribution 4.0 International license. They are presented on this website for educational and reference purposes.
The original materials note that the creators are not affiliated with Stata. Users should consult Stata’s official documentation for current command syntax, software changes, and detailed technical guidance.