IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/v8y2008i2p170-189.html

The Stata command felsdvreg to fit a linear model with two high-dimensional fixed effects

Author

Listed:
  • Thomas Cornelissen

    (University of Hannover)

Abstract

This article proposes a memory-saving decomposition of the design matrix to facilitate the estimation of a linear model with two high-dimensional fixed effects. A common way to fit such a model is to take into account one of the effects by including dummy variables and to sweep out the other effect by the within transformation (fixed-effects transformation). If the number of panel units is high, creating and storing the dummy variables can involve prohibitively large computer-memory requirements. The memory-saving procedure to set up the moment matrices for estimation presented in this article can reduce the memory requirements considerably. The companion Stata ado-file felsdvreg implements the estimation method, takes care of identification issues, and provides useful summary statistics. Copyright 2008 by StataCorp LP.

Suggested Citation

  • Thomas Cornelissen, 2008. "The Stata command felsdvreg to fit a linear model with two high-dimensional fixed effects," Stata Journal, StataCorp LLC, vol. 8(2), pages 170-189, June.
  • Handle: RePEc:tsj:stataj:v:8:y:2008:i:2:p:170-189
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/article.html?article=st0143
    Download Restriction: no

    File URL: http://www.stata-journal.com/software/sj8-2/st0143/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Martyn Andrews & Thorsten Schank & Richard Upward, 2006. "Practical fixed-effects estimation methods for the three-way error-components model," Stata Journal, StataCorp LLC, vol. 6(4), pages 461-481, December.
    2. John M. Abowd & Robert H. Creecy & Francis Kramarz, 2002. "Computing Person and Firm Effects Using Linked Longitudinal Employer-Employee Data," Longitudinal Employer-Household Dynamics Technical Papers 2002-06, Center for Economic Studies, U.S. Census Bureau.
    3. John M. Abowd & Francis Kramarz & David N. Margolis, 1999. "High Wage Workers and High Wage Firms," Econometrica, Econometric Society, vol. 67(2), pages 251-334, March.
    4. M. J. Andrews & L. Gill & T. Schank & R. Upward, 2008. "High wage workers and low wage firms: negative assortative matching or limited mobility bias?," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 171(3), pages 673-697, June.
    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. Johannes Carow, 2024. "A critical assessment of the two-way fixed-effects model for firm-level dependent variables," Working Papers 2405, Gutenberg School of Management and Economics, Johannes Gutenberg-Universität Mainz.
    2. Cornelißen Thomas & Hübler Olaf, 2011. "Unobserved Individual and Firm Heterogeneity in Wage and Job-Duration Functions: Evidence from German Linked Employer–Employee Data," German Economic Review, De Gruyter, vol. 12(4), pages 469-489, December.
    3. Mittag, Nikolas, 2016. "A Simple Method to Estimate Large Fixed Effects Models Applied to Wage Determinants and Matching," IZA Discussion Papers 10447, IZA Network @ LISER.
    4. Davidson, Carl & Heyman, Fredrik & Matusz, Steven & Sjöholm, Fredrik & Zhu, Susan Chun, 2014. "Globalization and imperfect labor market sorting," Journal of International Economics, Elsevier, vol. 94(2), pages 177-194.
    5. Mittag, Nikolas, 2012. "New methods to estimate models with large sets of fixed effects with an application to matched employer-employee data from Germany," FDZ Methodenreport 201201_en, Institut für Arbeitsmarkt- und Berufsforschung (IAB), Nürnberg [Institute for Employment Research, Nuremberg, Germany].
    6. Nikolas Mittag, 2015. "A Simple Method to Estimate Large Fixed Effects Models Applied to Wage Determinants and Matching," CERGE-EI Working Papers wp532, The Center for Economic Research and Graduate Education - Economics Institute, Prague.
    7. Frings, Hanna & Kamb, Rebecca, 2021. "What explains the urban wage premium? Sorting, non-portable or portable agglomeration effects?," Ruhr Economic Papers 916, RWI - Leibniz-Institut für Wirtschaftsforschung, Ruhr-University Bochum, TU Dortmund University, University of Duisburg-Essen.
    8. Bonhomme, Stéphane & Denis, Angela, 2024. "Estimating heterogeneous effects: Applications to labor economics," Labour Economics, Elsevier, vol. 91(C).
    9. Ainara González de San Román & Yolanda F. Rebollo‐Sanz, 2018. "An Estimation Of Worker And Firm Effects With Censored Data," Bulletin of Economic Research, Wiley Blackwell, vol. 70(4), pages 459-482, October.
    10. 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.
    11. Rasmus Lentz & Jean Marc Robin & Suphanit Piyapromdee, 2018. "On Worker and Firm Heterogeneity in Wages and Employment Mobility: Evidence from Danish Register Data," 2018 Meeting Papers 469, Society for Economic Dynamics.
    12. Bassi, Vittorio & Nyshadham, Anant & Tamayo, Jorge & Adhvaryu, Achyuta, 2020. "No Line Left Behind: Assortative Matching Inside the Firm," CEPR Discussion Papers 14554, Centre for Economic Policy Research.
    13. Engbom, Niklas & Moser, Christian & Sauermann, Jan, 2023. "Firm pay dynamics," Journal of Econometrics, Elsevier, vol. 233(2), pages 396-423.
    14. Cho, Chanho & Halford, Joseph T. & Hsu, Scott & Ng, Lilian, 2016. "Do managers matter for corporate innovation?," Journal of Corporate Finance, Elsevier, vol. 36(C), pages 206-229.
    15. Roesch, Marcus & Gerritse, Michiel & Karreman, Bas & van Oort, Frank & Loog, Bart, 2025. "Do workers or firms drive the foreign acquisition wage gap?," European Economic Review, Elsevier, vol. 178(C).
    16. Stephane Bonhomme & Elena Manresa & Thibaut Lamadon, 2026. "A Users' Guide to Uncovering Worker and Firm Effects: The ABC of AKM," Papers 2603.17034, arXiv.org, revised Apr 2026.
    17. Dostie, Benoit & Li, Jiang & Card, David & Parent, Daniel, 2023. "Employer policies and the immigrant–native earnings gap," Journal of Econometrics, Elsevier, vol. 233(2), pages 544-567.
    18. Andrews, M.J. & Gill, L. & Schank, T. & Upward, R., 2012. "High wage workers match with high wage firms: Clear evidence of the effects of limited mobility bias," Economics Letters, Elsevier, vol. 117(3), pages 824-827.
    19. 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.
    20. Bombardini, Matilde & Orefice, Gianluca & Tito, Maria D., 2019. "Does exporting improve matching? Evidence from French employer-employee data," Journal of International Economics, Elsevier, vol. 117(C), pages 229-241.

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    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:tsj:stataj:v:8:y:2008:i:2:p:170-189. 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: 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.