Scatter plots in Stata

May 21, 2019

Scatter plots are great visualization tools, especially for smaller datasets. When exploring relationships between two variables, scatter plots are as valuable as some of the summing operations. Let’s load up the nlsw88 dataset and have a try:

sysuse nlsw88, clear scatter wage grade

Scatter plot of relationship between wage and grade

In this example we can clearly see there’s a positive relationship between wage and grade completed.

Furthermore there is also the possibility to stack multiple plots on top of eachother, we’ll look more in depth on that in other post.


Profile picture

Written by Johan Osterberg who lives and works in Gothenburg, Sweden as a developer specialized in e-commerce. Connect with me on Linkedin

2024 © Johan Osterberg