BINSCATTER: Stata module to generate binned scatterplots

Michael Stepner · RePEc: Research Papers in Economics · 2013

binscatter generates binned scatterplots, and is optimized for speed in large datasets. Binned scatterplots provide a non-parametric way of visualizing the relationship between two variables. With a large number of observations, a scatterplot that plots every data point would become too crowded to interpret visually. binscatter groups the x-axis variable into equal-sized bins, computes the mean of the x-axis and y-axis variables within each bin, then creates a scatterplot of these data points. It provides built-in options to control for covariates before plotting the relationship. It will also plot fit lines based on the underlying data, and can automatically handle regression discontinuities.

Read the paper · More papers on PaperTik