IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/v19y2019i4p900-912.html
   My bibliography  Save this article

vcemway: A one-stop solution for robust inference with multiway clustering

Author

Listed:
  • Ariel Gu

    (Northumbria University)

  • Hong Il Yoo

    (Durham University)

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.

Suggested Citation

  • Ariel Gu & Hong Il Yoo, 2019. "vcemway: A one-stop solution for robust inference with multiway clustering," Stata Journal, StataCorp LP, vol. 19(4), pages 900-912, December.
  • Handle: RePEc:tsj:stataj:v:19:y:2019:i:4:p:900-912
    DOI: 10.1177/1536867X19893637
    Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj19-4/st0582/
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/article.html?article=st0582
    File Function: link to article purchase
    Download Restriction: no

    File URL: https://libkey.io/10.1177/1536867X19893637?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Seungjun Baek & Seongeun Kim & Tae-hwan Rhee & Wonmun Shin, 2023. "How effective are universal payments for raising consumption? Evidence from a natural experiment," Empirical Economics, Springer, vol. 65(5), pages 2181-2211, November.
    2. Matthew P. Makofske, 2024. "Disclosure policy design and regulatory agent behavior," American Journal of Agricultural Economics, John Wiley & Sons, vol. 106(1), pages 118-144, January.
    3. Iñigo Hernandez-Arenaz & Nagore Iriberri, 2023. "Gender differences in alternating-offer bargaining: an experimental study," Experimental Economics, Springer;Economic Science Association, vol. 26(4), pages 879-914, September.
    4. Ahsanuzzaman, & Palm-Forster, Leah H. & Suter, Jordan F., 2022. "Experimental evidence of common pool resource use in the presence of uncertainty," Journal of Economic Behavior & Organization, Elsevier, vol. 194(C), pages 139-160.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:tsj:stataj:v:19:y:2019:i:4:p:900-912. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum or Lisa Gilmore (email available below). General contact details of provider: http://www.stata-journal.com/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.