IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2506.20749.html
   My bibliography  Save this paper

Analytic inference with two-way clustering

Author

Listed:
  • Laurent Davezies
  • Xavier D'Haultf{oe}uille
  • Yannick Guyonvarch

Abstract

This paper studies analytic inference along two dimensions of clustering. In such setups, the commonly used approach has two drawbacks. First, the corresponding variance estimator is not necessarily positive. Second, inference is invalid in non-Gaussian regimes, namely when the estimator of the parameter of interest is not asymptotically Gaussian. We consider a simple fix that addresses both issues. In Gaussian regimes, the corresponding tests are asymptotically exact and equivalent to usual ones. Otherwise, the new tests are asymptotically conservative. We also establish their uniform validity over a certain class of data generating processes. Independently of our tests, we highlight potential issues with multiple testing and nonlinear estimators under two-way clustering. Finally, we compare our approach with existing ones through simulations.

Suggested Citation

  • Laurent Davezies & Xavier D'Haultf{oe}uille & Yannick Guyonvarch, 2025. "Analytic inference with two-way clustering," Papers 2506.20749, arXiv.org.
  • Handle: RePEc:arx:papers:2506.20749
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2506.20749
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. repec:dau:papers:123456789/10840 is not listed on IDEAS
    2. James G. MacKinnon & Morten Ørregaard Nielsen & Matthew D. Webb, 2021. "Wild Bootstrap and Asymptotic Inference With Multiway Clustering," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 39(2), pages 505-519, March.
    3. Kallenberg, Olav, 1989. "On the representation theorem for exchangeable arrays," Journal of Multivariate Analysis, Elsevier, vol. 30(1), pages 137-154, July.
    4. A. Colin Cameron & Jonah B. Gelbach & Douglas L. Miller, 2011. "Robust Inference With Multiway Clustering," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 29(2), pages 238-249, April.
    5. Thompson, Samuel B., 2011. "Simple formulas for standard errors that cluster by both firm and time," Journal of Financial Economics, Elsevier, vol. 99(1), pages 1-10, January.
    6. Laurent Davezies & Xavier D'Haultfoeuille & Yannick Guyonvarch, 2019. "Empirical Process Results for Exchangeable Arrays," Papers 1906.11293, arXiv.org, revised May 2020.
    7. Harold D Chiang & Yuya Sasaki, 2023. "On Using The Two-Way Cluster-Robust Standard Errors," Papers 2301.13775, arXiv.org.
    8. Konrad Menzel, 2021. "Bootstrap With Cluster‐Dependence in Two or More Dimensions," Econometrica, Econometric Society, vol. 89(5), pages 2143-2188, September.
    9. Aldous, David J., 1981. "Representations for partially exchangeable arrays of random variables," Journal of Multivariate Analysis, Elsevier, vol. 11(4), pages 581-598, December.
    10. Fafchamps, Marcel & Gubert, Flore, 2007. "The formation of risk sharing networks," Journal of Development Economics, Elsevier, vol. 83(2), pages 326-350, July.
    11. Marcel Fafchamps & Flore Gubert, 2007. "Risk Sharing and Network Formation," American Economic Review, American Economic Association, vol. 97(2), pages 75-79, May.
    12. Vaart,A. W. van der, 2000. "Asymptotic Statistics," Cambridge Books, Cambridge University Press, number 9780521784504, November.
    13. repec:dau:papers:123456789/4392 is not listed on IDEAS
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Chen, Kaicheng & Vogelsang, Timothy J., 2024. "Fixed-b asymptotics for panel models with two-way clustering," Journal of Econometrics, Elsevier, vol. 244(1).
    2. Chiang, Harold D. & Matsushita, Yukitoshi & Otsu, Taisuke, 2025. "Multiway empirical likelihood," Journal of Econometrics, Elsevier, vol. 249(PA).
    3. Harold D Chiang & Yukun Ma & Joel Rodrigue & Yuya Sasaki, 2021. "Dyadic double/debiased machine learning for analyzing determinants of free trade agreements," Papers 2110.04365, arXiv.org, revised Dec 2022.
    4. Nan Liu & Yanbo Liu & Yuya Sasaki, 2024. "Estimation and Inference for Causal Functions with Multiway Clustered Data," Papers 2409.06654, arXiv.org.
    5. MacKinnon, James G. & Nielsen, Morten Ørregaard & Webb, Matthew D., 2023. "Cluster-robust inference: A guide to empirical practice," Journal of Econometrics, Elsevier, vol. 232(2), pages 272-299.
    6. James G. MacKinnon & Morten {O}rregaard Nielsen & Matthew D. Webb, 2024. "Jackknife inference with two-way clustering," Papers 2406.08880, arXiv.org.
    7. Richard K. Crump & Nikolay Gospodinov & Ignacio Lopez Gaffney, 2024. "A Jackknife Variance Estimator for Panel Regressions," Staff Reports 1133, Federal Reserve Bank of New York.
    8. Bryan S. Graham, 2020. "Sparse network asymptotics for logistic regression," Papers 2010.04703, arXiv.org.
    9. Graham, Bryan S., 2020. "Network data," Handbook of Econometrics,, Elsevier.
    10. Bryan S. Graham, 2019. "Network Data," CeMMAP working papers CWP71/19, Centre for Microdata Methods and Practice, Institute for Fiscal Studies.
    11. Harold D. Chiang & Kengo Kato & Yuya Sasaki, 2023. "Inference for High-Dimensional Exchangeable Arrays," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 118(543), pages 1595-1605, July.
    12. Bryan S. Graham, 2024. "Sparse Network Asymptotics for Logistic Regression Under Possible Misspecification," Econometrica, Econometric Society, vol. 92(6), pages 1837-1868, November.
    13. Kaicheng Chen & Timothy J. Vogelsang, 2023. "Fixed-b Asymptotics for Panel Models with Two-Way Clustering," Papers 2309.08707, arXiv.org, revised Aug 2024.
    14. Harold D Chiang & Bruce E Hansen & Yuya Sasaki, 2022. "Standard errors for two-way clustering with serially correlated time effects," Papers 2201.11304, arXiv.org, revised Dec 2023.
    15. Rute M. Caeiro & Pedro C. Vicente, 2020. "Knowledge of vitamin A deficiency and crop adoption: Evidence from a field experiment in Mozambique," Agricultural Economics, International Association of Agricultural Economists, vol. 51(2), pages 175-190, March.
    16. Bryan S. Graham, 2017. "An econometric model of network formation with degree heterogeneity," CeMMAP working papers 08/17, Institute for Fiscal Studies.
    17. Graham, Bryan S. & Niu, Fengshi & Powell, James L., 2024. "Kernel density estimation for undirected dyadic data," Journal of Econometrics, Elsevier, vol. 240(2).
    18. Christian Ahlin & Hyeok Jeong, 2021. "A conditional Gini: measure, estimation, and application," The Journal of Economic Inequality, Springer;Society for the Study of Economic Inequality, vol. 19(2), pages 363-384, June.
    19. Aoyagi, Keitaro & Sawada, Yasuyuki & Shoji, Masahiro, 2022. "Irrigation infrastructure and trust: Evidence from natural and lab-in-the-field experiments in rural communities," World Development, Elsevier, vol. 156(C).
    20. Bruno Ferman, 2023. "Inference in difference‐in‐differences: How much should we trust in independent clusters?," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 38(3), pages 358-369, April.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    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:arx:papers:2506.20749. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.