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. 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.
    7. 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.
    8. 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.
    9. 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).
    10. Train,Kenneth E., 2009. "Discrete Choice Methods with Simulation," Cambridge Books, Cambridge University Press, number 9780521747387.
    11. 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.
    12. 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).
    13. 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.
    14. 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.
    15. 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.
    16. 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).
    17. 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).
    18. Arne Henningsen & Ott Toomet, 2011. "maxLik: A package for maximum likelihood estimation in R," Computational Statistics, Springer, vol. 26(3), pages 443-458, September.
    19. 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.
    20. 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.
    21. Gourieroux, Christian & Monfort, Alain, 1997. "Simulation-based Econometric Methods," OUP Catalogue, Oxford University Press, number 9780198774754, November.
    22. 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. 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.
    2. 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.
    3. Akshay Vij & Rico Krueger, 2018. "Random taste heterogeneity in discrete choice models: Flexible nonparametric finite mixture distributions," Papers 1802.02299, arXiv.org.
    4. 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.
    5. 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.
    6. 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).
    7. 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.
    8. 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.
    9. Robert J. Johnston & Kevin J. Boyle & Wiktor (Vic) Adamowicz & Jeff Bennett & Roy Brouwer & Trudy Ann Cameron & W. Michael Hanemann & Nick Hanley & Mandy Ryan & Riccardo Scarpa & Roger Tourangeau & Ch, 2017. "Contemporary Guidance for Stated Preference Studies," Journal of the Association of Environmental and Resource Economists, University of Chicago Press, vol. 4(2), pages 319-405.
    10. Bartczak, Anna, 2015. "The role of social and environmental attitudes in non-market valuation," Forest Policy and Economics, Elsevier, vol. 50(C), pages 357-365.
    11. Teferi, Ermias Tesfaye & Kassie, Girma T. & Pe, Mario Enrico & Fadda, Carlo, 2020. "Are farmers willing to pay for climate related traits of wheat? Evidence from rural parts of Ethiopia," Agricultural Systems, Elsevier, vol. 185(C).
    12. 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.
    13. 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.
    14. Schmid, Basil & Jokubauskaite, Simona & Aschauer, Florian & Peer, Stefanie & Hössinger, Reinhard & Gerike, Regine & Jara-Diaz, Sergio R. & Axhausen, Kay W., 2019. "A pooled RP/SP mode, route and destination choice model to investigate mode and user-type effects in the value of travel time savings," Transportation Research Part A: Policy and Practice, Elsevier, vol. 124(C), pages 262-294.
    15. 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.
    16. Zhifeng Gao & Lisa A. House & Jing Xie, 2016. "Online Survey Data Quality and Its Implication for Willingness-to-Pay: A Cross-Country Comparison," Canadian Journal of Agricultural Economics/Revue canadienne d'agroeconomie, Canadian Agricultural Economics Society/Societe canadienne d'agroeconomie, vol. 64(2), pages 199-221, June.
    17. Hess, Stephane & Train, Kenneth, 2017. "Correlation and scale in mixed logit models," Journal of choice modelling, Elsevier, vol. 23(C), pages 1-8.
    18. 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.
    19. 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.
    20. Pallante, Giacomo & Drucker, Adam G. & Sthapit, Sajal, 2016. "Assessing the potential for niche market development to contribute to farmers' livelihoods and agrobiodiversity conservation: Insights from the finger millet case study in Nepal," Ecological Economics, Elsevier, vol. 130(C), pages 92-105.

    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.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: . General contact details of provider: http://www.jstatsoft.org/ .

    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 hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.