Files
Abstract
I introduce binscatterhist, a command that extends the functionality of the popular binscatter command (Stepner, 2013, Statistical Software Components S457709, Department of Economics, Boston College). binscatter allows researchers to summarize the relationship between two variables in an informative and versatile way by collapsing scattered points into bins. However, information about the variables’ frequencies gets lost in the process. binscatterhist solves this issue by allowing the user to further enrich the graphs by plotting the variables’ underlying distribution. The binscatterhist command includes options for different regression methods, including reghdfe (Correia, 2014, Statistical Software Components S457874, Department of Economics, Boston College) and areg, and robust and clustered standard errors, with automatic reporting of estimation results and sample size.