Binned scatterplots with marginal histograms: binscatterhist

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 informativ...

Full description

Saved in:
Bibliographic Details
Published inStata Journal Vol. 22; no. 2; pp. 430 - 445
Main Author Pinna, Matteo
Format Journal Article
LanguageEnglish
Published 01.04.2022
Edition199
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary: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.
ISSN:1536-8634
DOI:10.22004/ag.econ.340464