Stata | Features

Stata Cheat Sheets

Below is a list of Stata Cheat Sheets developed by Tim Essam and Laura Hughes, from the US Agency for International Trade and Development. The cheat sheets cover Data Analysis, Programming, Data Processing, Data Transformation, Data Visualisation, and Plotting in Stata.

The Data Processing cheat sheet covers everything you need to do before you start your analyses. Set up and familiarise yourself with Stata and the standard Stata command syntax, then import, explore, and summarise your data before moving on.

Data Processing

The Data Transformation cheat sheet covers how to manipulate and organise your dataset to suit your needs prior to analysis. This includes subsetting, replacing or removing, combining, reshaping, manipulating or transforming, and saving your data.

Data Transformation

The Data Analysis cheat sheet provides a quick view of how to set up time-series, panel, survival, and survey datasets for analysis. Also included are common commands for investigation and analysis of your dataset including statistical tests, modelling, diagnostics, post-estimation, and special operators for categorical/factor variables.

Data Analysis

The programming cheat sheet is useful when streamlining and automating analyses. It provides an introduction to how the output of Stata commands is stored - in scalars, matrices, and macros - as well as information on how to access the output from Stata commands. The beginnings of automation using loops is also covered.

Programming

The Data Visualisation cheat sheet covers how to examine your data graphically. This includes how to look at the distribution of continuous and discrete variables individually, as well as how to compare a discrete variable with a continuous variable, or compare two continuous variables, or compare three variables. It also shows summary plots, fitted plots, and regression plots.

Data Visualisation

The Plotting in Stata cheat sheet covers the various graph options you can use to change how your graph appears. This includes changing symbols, lines, colours, sizes, positions, text, and labels. There is a diagram demonstrating different elements of a plot in Stata and information about setting a scheme.

Plotting in Stata