IDEAS home Printed from https://ideas.repec.org/p/luc/wpaper/18-13.html
   My bibliography  Save this paper

Efficient estimation of maximum likelihood models with multiple fixed-effects: the R package FENmlm

Author

Listed:
  • Laurent Bergé

    (CREA, Université du Luxembourg)

Abstract

Fixed-effect models are widely used econometric methods. This paper presents the R package FENmlm, which is devoted to the estimation of maximum likelihood (ML) models with any number of fixed-effects. The core of the algorithm, detailed in the paper, is based on a general framework to estimate any ML model with multiple fixed effects. It also integrates a fixed-point acceleration method to hasten the convergence of the fixed-effect coefficients. The R function offers the user a simple way to estimate any of four different maximum likelihood models: Poisson, Negative Binomial, Gaussian and Logit. Illustrations with real data detail the estimation process as well as the clustering of standard-errors and the various tools to export and manage results from multiple estimations. Simulations show that the algorithm outperforms existing methods in terms of computing time (often by orders of magnitude) or, in the Gaussian case, is on a par with the most efficient ones. Most interestingly, apart from the Gaussian case, the algorithm is revealed to be the only able to estimate models with many fixed-effects on a simple laptop. FENmlm is a free software and distributed under the general public license, as part of the R software project.

Suggested Citation

  • Laurent Bergé, 2018. "Efficient estimation of maximum likelihood models with multiple fixed-effects: the R package FENmlm," DEM Discussion Paper Series 18-13, Department of Economics at the University of Luxembourg.
  • Handle: RePEc:luc:wpaper:18-13
    as

    Download full text from publisher

    File URL: https://wwwen-archive.uni.lu/content/download/110162/1299525/file/2018_13%20Efficient%20estimation%20of%20maximum%20likelihood%20models%20with%20multiple%20fixed-effects%20-%20the%20R%20package%20FENmlm.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Liran Einav & Jonathan Levin, 2014. "The Data Revolution and Economic Analysis," Innovation Policy and the Economy, University of Chicago Press, vol. 14(1), pages 1-24.
    2. Broström, Göran & Holmberg, Henrik, 2011. "Generalized linear models with clustered data: Fixed and random effects models," Computational Statistics & Data Analysis, Elsevier, vol. 55(12), pages 3123-3134, December.
    3. Paulo Guimarães & Pedro Portugal, 2010. "A simple feasible procedure to fit models with high-dimensional fixed effects," Stata Journal, StataCorp LP, vol. 10(4), pages 628-649, December.
    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. Jeffrey M Wooldridge, 2010. "Econometric Analysis of Cross Section and Panel Data," MIT Press Books, The MIT Press, edition 2, volume 1, number 0262232588, December.
    6. Bergé, Laurent & Carayol, Nicolas & Roux, Pascale, 2018. "How do inventor networks affect urban invention?," Regional Science and Urban Economics, Elsevier, vol. 71(C), pages 137-162.
    7. Hansen, Christian B., 2007. "Asymptotic properties of a robust variance matrix estimator for panel data when T is large," Journal of Econometrics, Elsevier, vol. 141(2), pages 597-620, December.
    8. William Greene, 2004. "The behaviour of the maximum likelihood estimator of limited dependent variable models in the presence of fixed effects," Econometrics Journal, Royal Economic Society, vol. 7(1), pages 98-119, June.
    9. A. Colin Cameron & Douglas L. Miller, 2015. "A Practitioner’s Guide to Cluster-Robust Inference," Journal of Human Resources, University of Wisconsin Press, vol. 50(2), pages 317-372.
    10. Sergio Correia, 2016. "reghdfe: Estimating linear models with multi-way fixed effects," 2016 Stata Conference 24, Stata Users Group.
    11. White, Halbert, 1980. "A Heteroskedasticity-Consistent Covariance Matrix Estimator and a Direct Test for Heteroskedasticity," Econometrica, Econometric Society, vol. 48(4), pages 817-838, May.
    12. Jeffrey M. Wooldridge, 2003. "Cluster-Sample Methods in Applied Econometrics," American Economic Review, American Economic Association, vol. 93(2), pages 133-138, May.
    13. Amine Ouazad, 2008. "A2REG: Stata module to estimate models with two fixed effects," Statistical Software Components S456942, Boston College Department of Economics.
    14. Gaure, Simen, 2013. "OLS with multiple high dimensional category variables," Computational Statistics & Data Analysis, Elsevier, vol. 66(C), pages 8-18.
    Full references (including those not matched with items on IDEAS)

    Citations

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


    Cited by:

    1. Carlos Díaz & Sebastian Fossati & Nicolás Trajtenberg, 2022. "Stay at home if you can: COVID‐19 stay‐at‐home guidelines and local crime," Journal of Empirical Legal Studies, John Wiley & Sons, vol. 19(4), pages 1067-1113, December.
    2. Kyle Butts & John Gardner, 2021. "{did2s}: Two-Stage Difference-in-Differences," Papers 2109.05913, arXiv.org, revised May 2022.
    3. Matthias Flückiger & Erik Hornung & Mario Larch & Markus Ludwig & Allard Mees, 2022. "Roman Transport Network Connectivity and Economic Integration," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 89(2), pages 774-810.
    4. Matthias Niggli & Christian Rutzer, 2023. "Digital technologies, technological improvement rates, and innovations “Made in Switzerland”," Swiss Journal of Economics and Statistics, Springer;Swiss Society of Economics and Statistics, vol. 159(1), pages 1-31, December.
    5. Shr, Yau-Huo & Hsu, Wen & Hwang, Bing-Fang & Jung, Chau-Ren, 2023. "Air quality and risky behaviors on roads," Journal of Environmental Economics and Management, Elsevier, vol. 118(C).
    6. Michal Kvasnička, 2022. "Can we ignore spatial dependence when evaluating mergers?," Empirical Economics, Springer, vol. 62(3), pages 1323-1344, March.
    7. Gebresilasse, Mesay, 2023. "Rural roads, agricultural extension, and productivity," Journal of Development Economics, Elsevier, vol. 162(C).
    8. Altmejd, Adam, 2023. "Inheritance of fields of study," Working Paper Series 2023:11, IFAU - Institute for Evaluation of Labour Market and Education Policy.
    9. Mellacher, Patrick, 2023. "The impact of corona populism: Empirical evidence from Austria and theory," Journal of Economic Behavior & Organization, Elsevier, vol. 209(C), pages 113-140.
    10. Li, Xuan, 2023. "Home bias in shareholder voting," Discussion Papers 2023/21, Norwegian School of Economics, Department of Business and Management Science.
    11. Simon Blöthner & Mario Larch, 2022. "Economic determinants of regional trade agreements revisited using machine learning," Empirical Economics, Springer, vol. 63(4), pages 1771-1807, October.
    12. Mugnier, Martin & Wang, Ao, 2022. "Identification and (Fast) Estimation of Large Nonlinear Panel Models with Two-Way Fixed Effects," The Warwick Economics Research Paper Series (TWERPS) 1422, University of Warwick, Department of Economics.
    13. Leijten, Floris & Sim, Sarah & King, Henry & Verburg, Peter H., 2021. "Local deforestation spillovers induced by forest moratoria: Evidence from Indonesia," Land Use Policy, Elsevier, vol. 109(C).
    14. Hofmann, Sarah, 2023. "Disease perception and preventive behavior: The vaccination response to local measles outbreaks," Social Science & Medicine, Elsevier, vol. 331(C).

    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. Hansen, Bruce E. & Lee, Seojeong, 2019. "Asymptotic theory for clustered samples," Journal of Econometrics, Elsevier, vol. 210(2), pages 268-290.
    2. Aleksey Oshchepkov & Anna Shirokanova, 2020. "Multilevel Modeling For Economists: Why, When And How," HSE Working papers WP BRP 233/EC/2020, National Research University Higher School of Economics.
    3. Rok Spruk & Mitja Kovac, 2018. "Inefficient Growth," Review of Economics and Institutions, Università di Perugia, vol. 9(2).
    4. Albertazzi, Ugo & Fringuellotti, Fulvia & Ongena, Steven, 2024. "Fixed rate versus adjustable rate mortgages: Evidence from euro area banks," European Economic Review, Elsevier, vol. 161(C).
    5. Marcelo Moreira & Geert Ridder, 2019. "Efficiency loss of asymptotically efficient tests in an instrumental variables regression," CeMMAP working papers CWP03/19, Centre for Microdata Methods and Practice, Institute for Fiscal Studies.
    6. A. Colin Cameron & Douglas L. Miller, 2010. "Robust Inference with Clustered Data," Working Papers 106, University of California, Davis, Department of Economics.
    7. Bai, Jushan & Choi, Sung Hoon & Liao, Yuan, 2024. "Standard errors for panel data models with unknown clusters," Journal of Econometrics, Elsevier, vol. 240(2).
    8. 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.
    9. Mitja Kovac & Salvini Datta & Rok Spruk, 2021. "Pharmaceutical Product Liability, Litigation Regimes, and the Propensity to Patent: An Empirical Firm-Level Investigation," SAGE Open, , vol. 11(2), pages 21582440211, April.
    10. Miroslav Verbič & Rok Spruk, 2019. "Political economy of pension reforms: an empirical investigation," European Journal of Law and Economics, Springer, vol. 47(2), pages 171-232, April.
    11. Valentin Verdier, 2020. "Estimation and Inference for Linear Models with Two-Way Fixed Effects and Sparsely Matched Data," The Review of Economics and Statistics, MIT Press, vol. 102(1), pages 1-16, March.
    12. Kim, Min Seong & Sun, Yixiao, 2013. "Heteroskedasticity and spatiotemporal dependence robust inference for linear panel models with fixed effects," Journal of Econometrics, Elsevier, vol. 177(1), pages 85-108.
    13. Entorf, Horst & Sattarova, Liliya, 2016. "The Analysis of Prison-Prisoner Data Using Cluster-Sample Econometrics: Prison Conditions and Prisoners' Assessments of the Future," IZA Discussion Papers 10209, Institute of Labor Economics (IZA).
    14. Jeffrey D. Michler & Anna Josephson, 2022. "Recent developments in inference: practicalities for applied economics," Chapters, in: A Modern Guide to Food Economics, chapter 11, pages 235-268, Edward Elgar Publishing.
    15. A. Colin Cameron & Douglas L. Miller, 2010. "Robust Inference with Clustered Data," Working Papers 318, University of California, Davis, Department of Economics.
    16. Bai, Jushan & Choi, Sung Hoon & Liao, Yuan, 2024. "Standard errors for panel data models with unknown clusters," Journal of Econometrics, Elsevier, vol. 240(2).
    17. Rok Spruk, 2019. "The rise and fall of Argentina," Latin American Economic Review, Springer;Centro de Investigaciòn y Docencia Económica (CIDE), vol. 28(1), pages 1-40, December.
    18. Rok Spruk & Mitja Kovac, 2019. "Transaction costs and economic growth under common legal system: State‐level evidence from Mexico," Economics and Politics, Wiley Blackwell, vol. 31(2), pages 240-292, July.
    19. Jorge González Chapela, 2018. "Physical Work Intensity and the Split Workday: Theory and Evidence from Spain," Journal of Labor Research, Springer, vol. 39(3), pages 329-353, September.
    20. James G. MacKinnon & Matthew D. Webb & Morten Ø. Nielsen, 2017. "Bootstrap And Asymptotic Inference With Multiway Clustering," Working Paper 1386, Economics Department, Queen's University.

    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:luc:wpaper:18-13. 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: Marina Legrand (email available below). General contact details of provider: https://edirc.repec.org/data/crcrplu.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.