IDEAS home Printed from https://ideas.repec.org/p/ces/ceswps/_12055.html

ANOVA-HDFE: Fast Variance Decomposition with High-Dimensional Fixed Effects and an Application to Trade Flows

Author

Listed:
  • Hanna L. Adam
  • Mario Larch
  • Michael Nower

Abstract

Performing an analysis of variance (ANOVA) on a large dataset spanning many dimensions becomes computationally challenging or even infeasible. We develop a new, fast procedure, ANOVA-HDFE, which uses sequential linear regressions and builds on recent advances in regression analysis with high-dimensional fixed effects (HDFE). It accommodates both balanced and unbalanced settings with many categorical and continuous covariates, while also allowing for high-dimensional fixed effects. Applying ANOVA-HDFE to bilateral trade flows, we find that 60% of the variation is at the country or country-time level. Moreover, a substantial proportion of the pair-specific variation remains unexplained by standard trade cost proxy variables.

Suggested Citation

  • Hanna L. Adam & Mario Larch & Michael Nower, 2025. "ANOVA-HDFE: Fast Variance Decomposition with High-Dimensional Fixed Effects and an Application to Trade Flows," CESifo Working Paper Series 12055, CESifo.
  • Handle: RePEc:ces:ceswps:_12055
    as

    Download full text from publisher

    File URL: https://www.ifo.de/DocDL/cesifo1_wp12055.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Paulo Guimarães & Pedro Portugal, 2010. "A simple feasible procedure to fit models with high-dimensional fixed effects," Stata Journal, StataCorp LLC, vol. 10(4), pages 628-649, December.
    2. Redding, Stephen J. & Weinstein, David E., 2024. "Accounting for trade patterns," Journal of International Economics, Elsevier, vol. 150(C).
    3. Torres, Sónia & Portugal, Pedro & Addison, John T. & Guimarães, Paulo, 2018. "The sources of wage variation and the direction of assortative matching: Evidence from a three-way high-dimensional fixed effects regression model," Labour Economics, Elsevier, vol. 54(C), pages 47-60.
    4. Egger, Peter & Nigai, Sergey, 2015. "Structural Gravity with Dummies Only," CEPR Discussion Papers 10427, C.E.P.R. Discussion Papers.
    5. Mittag, Nikolas, 2019. "A simple method to estimate large fixed effects models applied to wage determinants," Labour Economics, Elsevier, vol. 61(C).
    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. Ana Catarina Pimenta & Marta Silva & Joana Cima & Miguel Portela, 2022. "Workforce skills and firm productivity," Economic Bulletin and Financial Stability Report Articles and Banco de Portugal Economic Studies, Banco de Portugal, Economics and Research Department.
    2. Carneiro, Anabela & Portugal, Pedro & Raposo, Pedro & Rodrigues, Paulo M.M., 2023. "The persistence of wages," Journal of Econometrics, Elsevier, vol. 233(2), pages 596-611.
    3. Scott French, 2017. "A Gravity-Based Revealed Comparative Advantage Estimator," Discussion Papers 2017-05, School of Economics, The University of New South Wales.
    4. Michael Pfaffermayr, 2020. "Constrained Poisson pseudo maximum likelihood estimation of structural gravity models," International Economics, CEPII research center, issue 161, pages 188-198.
    5. Pedro Portugal & Hugo Reis & Paulo Guimarães & Ana Rute Cardoso, 2023. "What lies behind returns to schooling: the role of labor market sorting and worker heterogeneity," Working Papers w202322, Banco de Portugal, Economics and Research Department.
    6. Scott French, 2017. "Comparative Advantage and Biased Gravity," Discussion Papers 2017-03, School of Economics, The University of New South Wales.
    7. Amelie Guillin & Isabelle Rabaud & Chahir Zaki, 2023. "Does the depth of trade agreements matter for trade in services?," The World Economy, Wiley Blackwell, vol. 46(12), pages 3616-3653, December.
    8. Haddou, Samira, 2024. "Determinants of CDS in core and peripheral European countries: A comparative study during crisis and calm periods," The North American Journal of Economics and Finance, Elsevier, vol. 71(C).
    9. Paul Anand & Jere R. Behrman & Hai-Anh H. Dang & Sam Jones, 2018. "Inequality of opportunity in education: Accounting for the contributions of Sibs, schools and sorting across East Africa," Working Papers 480, ECINEQ, Society for the Study of Economic Inequality.
    10. Kim, Seula, 2025. "Workers' Job Prospects and Young Firm Dynamics," IZA Discussion Papers 17655, IZA Network @ LISER.
    11. P. Charnoz & C. Lelarge & C. Trevien, 2016. "Communication Costs and the Internal Organization of Multi-Plant Businesses: Evidence from the Impact of the French High-Speed Rail," Documents de Travail de l'Insee - INSEE Working Papers g2016-02, Institut National de la Statistique et des Etudes Economiques.
    12. Sandra Cavaco & Patricia Crifo & Antoine Rebérioux & Gwenael Roudaut, 2014. "Independent directors: less informed, but better selected? New evidence from a two-way director-firm fixed effect model," Working Papers hal-04141284, HAL.
    13. Nilsen, Øivind Anti & Raknerud, Arvid & Skjerpen, Terje, 2011. "Using the Helmert-transformation to reduce dimensionality in a mixed model: Application to a wage equation with worker and firm heterogeneity," Discussion Paper Series in Economics 11/2011, Norwegian School of Economics, Department of Economics, revised 04 Oct 2011.
    14. Kox, Henk L.M. & Rojas Romasgosa, Hugo, 2019. "Gravity estimations with FDI bilateral data: Potential FDI effects of deep preferential trade agreements," MPRA Paper 96318, University Library of Munich, Germany.
    15. Benedikt Heid & Frank Stähler, 2024. "Disentangling Frictions Across the World: Markups Versus Trade Costs," CESifo Working Paper Series 11420, CESifo.
    16. Xu, Lei & Ou, Amy Y. & Park, Haemin Dennis & Jiang, Han, 2024. "Breaking barriers or maintaining status quo? Female representation in decision-making group of venture capital firms and the funding of woman-led businesses," Journal of Business Venturing, Elsevier, vol. 39(1).
    17. Mion, Giordano & Opromolla, Luca David, 2014. "Managers' mobility, trade performance, and wages," Journal of International Economics, Elsevier, vol. 94(1), pages 85-101.
    18. Head, Keith & Mayer, Thierry, 2014. "Gravity Equations: Workhorse,Toolkit, and Cookbook," Handbook of International Economics, in: Gopinath, G. & Helpman, . & Rogoff, K. (ed.), Handbook of International Economics, edition 1, volume 4, chapter 0, pages 131-195, Elsevier.
    19. Agnosteva, Delina E. & Anderson, James E. & Yotov, Yoto V., 2019. "Intra-national trade costs: Assaying regional frictions," European Economic Review, Elsevier, vol. 112(C), pages 32-50.
    20. Kouretas, Georgios P. & Pawłowska, Małgorzata, 2020. "Does change in the market structure have any impact on different types of bank loans in the EU?," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 65(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • F14 - International Economics - - Trade - - - Empirical Studies of Trade
    • C23 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Models with Panel Data; Spatio-temporal Models
    • C55 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Large Data Sets: Modeling and Analysis
    • F16 - International Economics - - Trade - - - Trade and Labor Market Interactions

    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:ces:ceswps:_12055. 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: Klaus Wohlrabe (email available below). General contact details of provider: https://edirc.repec.org/data/cesifde.html .

    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.