TechTips by SDAS

Helping you drive more value from your subscription with useful tips and guidance.

Latest TechTips

Categorical Histograms

A histogram can be used to show either continuous or categorical data in a bar graph. For continuous data the histogram command in Stata will put the data into artificial categories called bins. For example, if you have a list of heights for 1000 people and you run the histogram command on that data, it will organize the heights into ranges. Each range is shown as a bar along the x-axis, and each bar represents the number of people whose height falls into that range. In this way the histogram command has created height categories to give a visual understanding of the distribution of heights in the data.

graphics, stata

Violin Plot in Stata

A violin plot is a modified box-plot which adds the estimated kernel density to each plot. To draw this plot in Stata you will need a user-written command called vioplot. This can be easily installed within Stata using the following command:

graphics, stata

Melbourne Cup Performance Plots

Create a heat map and horizontal bar graph in Stata to compare Melbourne Cup horse performance and identify potential betting value.

analytics, graphics, modelling, stata

Using Calligram to identify key contributors to Consumer Price Index

In this TechTip, we demonstrate how to use Calligram to visualise Australian Consumer Price Index (CPI) data. We will create a word cloud in the shape of Australia, with each word representing an expenditure category. The size and colour of each word will reflect its annual percentage price increase.

graphics, maps, text

External Resources

Helpful guides from fellow Stata users

Todd Jones

Quick Stata Tips

A quick fire compilation of lesser known Stata tips. Even seasoned Stata users will find something new in this book.

Asjad Naqvi

The Stata Guide on Medium

The Stata Guide repository on GitHub

The Stata Guide includes is a series of smaller guides on topics from maps to workflow to programming. It includes a lot of cool data visualisations and even ready-to-use Stata packages for some of the guides focusing on graphics.

Demetris Christodoulou

Graph workflow

The Graph Workflow is a website full of data graphs focusing on accurate, informative and efficient graphs for reporting, exploratory and inferential purposes. All Stata code for each graph is provided.

John Kane

Getting More Out of Stata’s Graph Editor: A Concise Guide

The ultimate guide to Stata's Graph Editor designed for both beginner and more advanced Stata users.

Jan Kabátek

How to handle large datasets in Stata

An excellent guide on how to navigate the issue of insufficient memory when handling large datasets.