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...
Saved in:
Published in | Stata Journal Vol. 22; no. 2; pp. 430 - 445 |
---|---|
Main Author | |
Format | Journal Article |
Language | English |
Published |
01.04.2022
|
Edition | 199 |
Subjects | |
Online Access | Get full text |
Cover
Loading…
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 |