vcemway: A one-stop solution for robust inference with multiway clustering
Ariel Gu () and
Hong Il Yoo ()
Additional contact information
Ariel Gu: Northumbria University
Hong Il Yoo: Durham University
Stata Journal, 2019, vol. 19, issue 4, 900-912
Abstract:
Most Stata commands allow cluster(varname) or vce(cluster clustvar) as an option, popularizing the use of standard errors that are robust to one-way clustering. For adjusting standard errors for multiway clustering, there is no solution that is as widely applicable. While several community-contributed packages support multiway clustering, each package is compatible only with a subset of models that Stata’s ever-expanding library of commands allows the researcher to fit. We introduce a command, vcemway, that provides a one-stop solution for multiway clustering. vcemway works with any estimation command that allows cluster(varname) as an option, and it adjusts standard errors, individual significance statistics, and confidence intervals in output tables for multiway clustering in specified dimensions. The covariance matrix used in making this adjustment is stored in e(V), meaning that any subsequent call to postestimation commands that use e(V) as input (for example, test and margins) will also produce results that are robust to multiway clustering.
Keywords: vcemway; ivreg2; cmgreg; reghdfe; boottest; two-way clustering; multiway clustering (search for similar items in EconPapers)
Date: 2019
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj19-4/st0582/
References: Add references at CitEc
Citations: View citations in EconPapers (4)
Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0582 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:19:y:2019:i:4:p:900-912
Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html
DOI: 10.1177/1536867X19893637
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 ().