IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v079i02.html
   My bibliography  Save this article

Multinomial Logit Models with Continuous and Discrete Individual Heterogeneity in R: The gmnl Package

Author

Listed:
  • Sarrias, Mauricio
  • Daziano, Ricardo

Abstract

This paper introduces the package gmnl in R for estimation of multinomial logit models with unobserved heterogeneity across individuals for cross-sectional and panel (longitudinal) data. Unobserved heterogeneity is modeled by allowing the parameters to vary randomly over individuals according to a continuous, discrete, or discrete-continuous mixture distribution, which must be chosen a priori by the researcher. In particular, the models supported by gmnl are the multinomial or conditional logit, the mixed multinomial logit, the scale heterogeneity multinomial logit, the generalized multinomial logit, the latent class logit, and the mixed-mixed multinomial logit. These models are estimated using either the maximum likelihood estimator or the maximum simulated likelihood estimator. This article describes and illustrates with real databases all functionalities of gmnl, including the derivation of individual conditional estimates of both the random parameters and willingness-to-pay measures.

Suggested Citation

  • Sarrias, Mauricio & Daziano, Ricardo, 2017. "Multinomial Logit Models with Continuous and Discrete Individual Heterogeneity in R: The gmnl Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 79(i02).
  • Handle: RePEc:jss:jstsof:v:079:i02
    DOI: http://hdl.handle.net/10.18637/jss.v079.i02
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v079i02/v79i02.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v079i02/gmnl_1.1-3.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v079i02/v79i02.R
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v079.i02?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
    ---><---

    References listed on IDEAS

    as
    1. Lee, Lung-Fei, 1992. "On Efficiency of Methods of Simulated Moments and Maximum Simulated Likelihood Estimation of Discrete Response Models," Econometric Theory, Cambridge University Press, vol. 8(4), pages 518-552, December.
    2. Jackson, Christopher, 2011. "Multi-State Models for Panel Data: The msm Package for R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 38(i08).
    3. Leisch, Friedrich, 2004. "FlexMix: A General Framework for Finite Mixture Models and Latent Class Regression in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 11(i08).
    4. Sarrias, Mauricio, 2016. "Discrete Choice Models with Random Parameters in R: The Rchoice Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 74(i10).
    5. Scarpa, R. & Thiene, M. & Train, K., 2008. "Appendix to Utility in WTP space: a tool to address confounding random scale effects in destination choice to the Alps," American Journal of Agricultural Economics APPENDICES, Agricultural and Applied Economics Association, vol. 90(4), pages 1-9, January.
    6. William H. Greene & David A. Hensher, 2013. "Revealing additional dimensions of preference heterogeneity in a latent class mixed multinomial logit model," Applied Economics, Taylor & Francis Journals, vol. 45(14), pages 1897-1902, May.
    7. Garrett Sonnier & Andrew Ainslie & Thomas Otter, 2007. "Heterogeneity distributions of willingness-to-pay in choice models," Quantitative Marketing and Economics (QME), Springer, vol. 5(3), pages 313-331, September.
    8. Junyi Shen, 2009. "Latent class model or mixed logit model? A comparison by transport mode choice data," Applied Economics, Taylor & Francis Journals, vol. 41(22), pages 2915-2924.
    9. Daziano, Ricardo A. & Achtnicht, Martin, 2014. "Accounting for uncertainty in willingness to pay for environmental benefits," Energy Economics, Elsevier, vol. 44(C), pages 166-177.
    10. Riccardo Scarpa & Mara Thiene, 2005. "Destination Choice Models for Rock Climbing in the Northeastern Alps: A Latent-Class Approach Based on Intensity of Preferences," Land Economics, University of Wisconsin Press, vol. 81(3).
    11. Train,Kenneth E., 2009. "Discrete Choice Methods with Simulation," Cambridge Books, Cambridge University Press, number 9780521747387.
    12. Peter Boxall & Wiktor Adamowicz, 2002. "Understanding Heterogeneous Preferences in Random Utility Models: A Latent Class Approach," Environmental & Resource Economics, Springer;European Association of Environmental and Resource Economists, vol. 23(4), pages 421-446, December.
    13. Linzer, Drew A. & Lewis, Jeffrey B., 2011. "poLCA: An R Package for Polytomous Variable Latent Class Analysis," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 42(i10).
    14. Hasan, Asad & Wang, Zhiyu & Mahani, Alireza S., 2016. "Fast Estimation of Multinomial Logit Models: R Package mnlogit," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 75(i03).
    15. Bhat, Chandra R., 2001. "Quasi-random maximum simulated likelihood estimation of the mixed multinomial logit model," Transportation Research Part B: Methodological, Elsevier, vol. 35(7), pages 677-693, August.
    16. Denzil G. Fiebig & Michael P. Keane & Jordan Louviere & Nada Wasi, 2010. "The Generalized Multinomial Logit Model: Accounting for Scale and Coefficient Heterogeneity," Marketing Science, INFORMS, vol. 29(3), pages 393-421, 05-06.
    17. Greene, William H. & Hensher, David A., 2003. "A latent class model for discrete choice analysis: contrasts with mixed logit," Transportation Research Part B: Methodological, Elsevier, vol. 37(8), pages 681-698, September.
    18. Stephane Hess & John Rose, 2012. "Can scale and coefficient heterogeneity be separated in random coefficients models?," Transportation, Springer, vol. 39(6), pages 1225-1239, November.
    19. Zeileis, Achim & Croissant, Yves, 2010. "Extended Model Formulas in R: Multiple Parts and Multiple Responses," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 34(i01).
    20. Martin, Andrew D. & Quinn, Kevin M. & Park, Jong Hee, 2011. "MCMCpack: Markov Chain Monte Carlo in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 42(i09).
    21. Arne Henningsen & Ott Toomet, 2011. "maxLik: A package for maximum likelihood estimation in R," Computational Statistics, Springer, vol. 26(3), pages 443-458, September.
    22. Angel Bujosa & Antoni Riera & Robert Hicks, 2010. "Combining Discrete and Continuous Representations of Preference Heterogeneity: A Latent Class Approach," Environmental & Resource Economics, Springer;European Association of Environmental and Resource Economists, vol. 47(4), pages 477-493, December.
    23. William Greene & David Hensher, 2010. "Does scale heterogeneity across individuals matter? An empirical assessment of alternative logit models," Transportation, Springer, vol. 37(3), pages 413-428, May.
    24. Gourieroux, Christian & Monfort, Alain, 1997. "Simulation-based Econometric Methods," OUP Catalogue, Oxford University Press, number 9780198774754.
    25. Riccardo Scarpa & Mara Thiene & Kenneth Train, 2008. "Utility in Willingness to Pay Space: A Tool to Address Confounding Random Scale Effects in Destination Choice to the Alps," American Journal of Agricultural Economics, Agricultural and Applied Economics Association, vol. 90(4), pages 994-1010.
    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. Akshay Vij & Rico Krueger, 2018. "Random taste heterogeneity in discrete choice models: Flexible nonparametric finite mixture distributions," Papers 1802.02299, arXiv.org.
    2. Catalina M. Torres & Sergio Colombo & Nick Hanley, 2014. "Incorrectly accounting for preference heterogeneity in choice experiments: what are the implications for welfare measurement?," DEA Working Papers 65, Universitat de les Illes Balears, Departament d'Economía Aplicada.
    3. Vij, Akshay & Krueger, Rico, 2017. "Random taste heterogeneity in discrete choice models: Flexible nonparametric finite mixture distributions," Transportation Research Part B: Methodological, Elsevier, vol. 106(C), pages 76-101.
    4. Krueger, Rico & Rashidi, Taha H. & Vij, Akshay, 2020. "A Dirichlet process mixture model of discrete choice: Comparisons and a case study on preferences for shared automated vehicles," Journal of choice modelling, Elsevier, vol. 36(C).
    5. Thiene, Mara & Scarpa, Riccardo & Longo, Alberto & Hutchinson, William George, 2018. "Types of front of pack food labels: Do obese consumers care? Evidence from Northern Ireland," Food Policy, Elsevier, vol. 80(C), pages 84-102.
    6. Stephane Hess, 2014. "Latent class structures: taste heterogeneity and beyond," Chapters, in: Stephane Hess & Andrew Daly (ed.), Handbook of Choice Modelling, chapter 14, pages 311-330, Edward Elgar Publishing.
    7. Arne Hole & Julie Kolstad, 2012. "Mixed logit estimation of willingness to pay distributions: a comparison of models in preference and WTP space using data from a health-related choice experiment," Empirical Economics, Springer, vol. 42(2), pages 445-469, April.
    8. Mara Thiene & Riccardo Scarpa & Jordan Louviere, 2015. "Addressing Preference Heterogeneity, Multiple Scales and Attribute Attendance with a Correlated Finite Mixing Model of Tap Water Choice," Environmental & Resource Economics, Springer;European Association of Environmental and Resource Economists, vol. 62(3), pages 637-656, November.
    9. Sarrias, Mauricio, 2016. "Discrete Choice Models with Random Parameters in R: The Rchoice Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 74(i10).
    10. Doherty, Edel & Campbell, Danny & Hynes, Stephen, 2012. "Exploring cost heterogeneity in recreational demand," Working Papers 148832, National University of Ireland, Galway, Socio-Economic Marine Research Unit.
    11. Owusu, Rebecca & Dadzie, Samuel Kwesi Ndzebah, 2021. "Heterogeneity in consumer preferences for organic and genetically modified food products in Ghana," African Journal of Agricultural and Resource Economics, African Association of Agricultural Economists, vol. 16(2), June.
    12. Giacomo Pallante & Adam Drucker, 2014. "Niche Markets for Agrobiodiversity Conservation: Preference and Scale Heterogeneity Effects on Nepalese Consumers’ WTP for Finger Millet Products," SEEDS Working Papers 1414, SEEDS, Sustainability Environmental Economics and Dynamics Studies, revised May 2014.
    13. Kohei Imamura & Kohei Takenaka Takano & Nobuhito Mori & Tohru Nakashizuka & Shunsuke Managi, 2016. "Attitudes toward disaster-prevention risk in Japanese coastal areas: analysis of civil preference," Natural Hazards: Journal of the International Society for the Prevention and Mitigation of Natural Hazards, Springer;International Society for the Prevention and Mitigation of Natural Hazards, vol. 82(1), pages 209-226, May.
    14. Ajayi, V. & Reiner, D., 2020. "Consumer Willingness to Pay for Reducing the Environmental Footprint of Green Plastics," Cambridge Working Papers in Economics 20110, Faculty of Economics, University of Cambridge.
    15. Kassie, Girma T. & Abdulai, Awudu & Greene, William H. & Shiferaw, Bekele & Abate, Tsedeke & Tarekegne, Amsal & Sutcliffe, Chloe, 2017. "Modeling Preference and Willingness to Pay for Drought Tolerance (DT) in Maize in Rural Zimbabwe," World Development, Elsevier, vol. 94(C), pages 465-477.
    16. Ricardo A. Daziano & Luis Miranda-Moreno & Shahram Heydari, 2013. "Computational Bayesian Statistics in Transportation Modeling: From Road Safety Analysis to Discrete Choice," Transport Reviews, Taylor & Francis Journals, vol. 33(5), pages 570-592, September.
    17. Sarrias, Mauricio & Daziano, Ricardo A., 2018. "Individual-specific point and interval conditional estimates of latent class logit parameters," Journal of choice modelling, Elsevier, vol. 27(C), pages 50-61.
    18. Rico Krueger & Taha H. Rashidi & Akshay Vij, 2019. "Semi-Parametric Hierarchical Bayes Estimates of New Yorkers' Willingness to Pay for Features of Shared Automated Vehicle Services," Papers 1907.09639, arXiv.org.
    19. Yoo, James & Ready, Richard C., 2014. "Preference heterogeneity for renewable energy technology," Energy Economics, Elsevier, vol. 42(C), pages 101-114.
    20. Thiene, Mara & Scarpa, Riccardo & Longo, Alberto & Hutchinson, George, "undated". "Front of Pack Food Labels and dietary choice determinants: what works and for whom?," 2017 Annual Meeting, July 30-August 1, Chicago, Illinois 261225, Agricultural and Applied Economics Association.

    More about this item

    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:jss:jstsof:v:079:i02. 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 (email available below). General contact details of provider: http://www.jstatsoft.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.