Binned scatterplots with marginal histograms: binscatterhist
Matteo Pinna ()
Stata Journal, 2022, vol. 22, issue 2, 430-445
Abstract:
I introduce binscatterhist, a command that extends the functionality of the popular binscatter command (Stepner, 2013, Statistical Software Compo- nents 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 dif- ferent 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.
Keywords: binscatterhist; binscatter; histogram; scatter; ggscatterhist; scatterhist; binned scatterplots; marginal histograms (search for similar items in EconPapers)
Date: 2022
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj22-2/gr0091/
References: Add references at CitEc
Citations: View citations in EconPapers (1)
Downloads: (external link)
http://www.stata-journal.com/article.html?article=gr0091 link to article purchase
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:tsj:stataj:v:22:y:2022:i:2:p:430-445
Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html
DOI: 10.1177/1536867X221106418
Access Statistics for this article
Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins
More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().