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

Fast Estimation of Multinomial Logit Models: R Package mnlogit

Author

Listed:
  • Hasan, Asad
  • Wang, Zhiyu
  • Mahani, Alireza S.

Abstract

We present the R package mnlogit for estimating multinomial logistic regression models, particularly those involving a large number of categories and variables. Compared to existing software, mnlogit offers speedups of 10 - 50 times for modestly sized problems and more than 100 times for larger problems. Running in parallel mode on a multicore machine gives up to 4 times additional speedup on 8 processor cores. mnlogit achieves its computational efficiency by drastically speeding up computation of the log-likelihood function's Hessian matrix through exploiting structure in matrices that arise in intermediate calculations. This efficient exploitation of intermediate data structures allows mnlogit to utilize system memory much more efficiently, such that for most applications mnlogit requires less memory than comparable software by a factor that is proportional to the number of model categories.

Suggested Citation

  • 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).
  • Handle: RePEc:jss:jstsof:v:075:i03
    DOI: http://hdl.handle.net/10.18637/jss.v075.i03
    as

    Download full text from publisher

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

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v075i03/mnlogit_1.2.5.tar.gz
    Download Restriction: no

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

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

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v075.i03?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. Friedman, Jerome H. & Hastie, Trevor & Tibshirani, Rob, 2010. "Regularization Paths for Generalized Linear Models via Coordinate Descent," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 33(i01).
    2. Train,Kenneth E., 2009. "Discrete Choice Methods with Simulation," Cambridge Books, Cambridge University Press, number 9780521747387, October.
    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. Yves Croissant, 2020. "mlogit: Random Utility Models in R," Post-Print hal-03019603, HAL.
    2. 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).
    3. Llorca, Carlos & Ji, Joanna & Molloy, Joseph & Moeckel, Rolf, 2018. "The usage of location based big data and trip planning services for the estimation of a long-distance travel demand model. Predicting the impacts of a new high speed rail corridor," Research in Transportation Economics, Elsevier, vol. 72(C), pages 27-36.
    4. Benjamin Quost & Thierry Denœux & Shoumei Li, 2017. "Parametric classification with soft labels using the evidential EM algorithm: linear discriminant analysis versus logistic regression," Advances in Data Analysis and Classification, Springer;German Classification Society - Gesellschaft für Klassifikation (GfKl);Japanese Classification Society (JCS);Classification and Data Analysis Group of the Italian Statistical Society (CLADAG);International Federation of Classification Societies (IFCS), vol. 11(4), pages 659-690, December.

    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. Mauerer, Ingrid & Pößnecker, Wolfgang & Thurner, Paul W. & Tutz, Gerhard, 2015. "Modeling electoral choices in multiparty systems with high-dimensional data: A regularized selection of parameters using the lasso approach," Journal of choice modelling, Elsevier, vol. 16(C), pages 23-42.
    2. De La Maza, Cristóbal & Davis, Alex & Azevedo, Inês, 2021. "Welfare analysis of the ecological impacts of electricity production in Chile using the sparse multinomial logit model," Ecological Economics, Elsevier, vol. 184(C).
    3. Tutz, Gerhard & Pößnecker, Wolfgang & Uhlmann, Lorenz, 2015. "Variable selection in general multinomial logit models," Computational Statistics & Data Analysis, Elsevier, vol. 82(C), pages 207-222.
    4. Zhifeng Gao & Ted C. Schroeder, 2009. "Consumer responses to new food quality information: are some consumers more sensitive than others?," Agricultural Economics, International Association of Agricultural Economists, vol. 40(3), pages 339-346, May.
    5. Cheng, Leilei & Yin, Changbin & Chien, Hsiaoping, 2015. "Demand for milk quantity and safety in urban China: evidence from Beijing and Harbin," Australian Journal of Agricultural and Resource Economics, Australian Agricultural and Resource Economics Society, vol. 59(2), April.
    6. Wen, Chieh-Hua & Huang, Chia-Jung & Fu, Chiang, 2020. "Incorporating continuous representation of preferences for flight departure times into stated itinerary choice modeling," Transport Policy, Elsevier, vol. 98(C), pages 10-20.
    7. Johannes Buggle & Thierry Mayer & Seyhun Orcan Sakalli & Mathias Thoenig, 2023. "The Refugee’s Dilemma: Evidence from Jewish Migration out of Nazi Germany," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 138(2), pages 1273-1345.
    8. Christelis, Dimitris & Dobrescu, Loretti I. & Motta, Alberto, 2020. "Early life conditions and financial risk-taking in older age," The Journal of the Economics of Ageing, Elsevier, vol. 17(C).
    9. Ortega, David L. & Wang, H. Holly & Wu, Laping & Hong, Soo Jeong, 2015. "Retail channel and consumer demand for food quality in China," China Economic Review, Elsevier, vol. 36(C), pages 359-366.
    10. Tina Birgitte Hansen & Jes Sanddal Lindholt & Axel Diederichsen & Rikke Søgaard, 2019. "Do Non-participants at Screening have a Different Threshold for an Acceptable Benefit–Harm Ratio than Participants? Results of a Discrete Choice Experiment," The Patient: Patient-Centered Outcomes Research, Springer;International Academy of Health Preference Research, vol. 12(5), pages 491-501, October.
    11. Doyle, Orla & Fidrmuc, Jan, 2006. "Who favors enlargement?: Determinants of support for EU membership in the candidate countries' referenda," European Journal of Political Economy, Elsevier, vol. 22(2), pages 520-543, June.
    12. Tovar, Jorge, 2012. "Consumers’ Welfare and Trade Liberalization: Evidence from the Car Industry in Colombia," World Development, Elsevier, vol. 40(4), pages 808-820.
    13. Pereira, Pedro & Ribeiro, Tiago, 2011. "The impact on broadband access to the Internet of the dual ownership of telephone and cable networks," International Journal of Industrial Organization, Elsevier, vol. 29(2), pages 283-293, March.
    14. Yamada, Katsunori & Sato, Masayuki, 2013. "Another avenue for anatomy of income comparisons: Evidence from hypothetical choice experiments," Journal of Economic Behavior & Organization, Elsevier, vol. 89(C), pages 35-57.
    15. Potoglou, Dimitris & Palacios, Juan & Feijoo, Claudio & Gómez Barroso, Jose-Luis, 2015. "The supply of personal information: A study on the determinants of information provision in e-commerce scenarios," 26th European Regional ITS Conference, Madrid 2015 127174, International Telecommunications Society (ITS).
    16. Sant'Anna, Ana Claudia & Bergtold, Jason & Shanoyan, Aleksan & Caldas, Marcellus & Granco, Gabriel, 2021. "Deal or No Deal? Analysis of Bioenergy Feedstock Contract Choice with Multiple Opt-out Options and Contract Attribute Substitutability," 2021 Conference, August 17-31, 2021, Virtual 315289, International Association of Agricultural Economists.
    17. Mark Morrison & Craig Nalder, 2009. "Willingness to Pay for Improved Quality of Electricity Supply Across Business Type and Location," The Energy Journal, , vol. 30(2), pages 117-134, April.
    18. Simon P. Anderson & André de Palma, 2012. "Competition for attention in the Information (overload) Age," RAND Journal of Economics, RAND Corporation, vol. 43(1), pages 1-25, March.
    19. Mtimet, Nadhem & Ujiie, Kiyokazu & Kashiwagi, Kenichi & Zaibet, Lokman & Nagaki, Masakazu, 2011. "The effects of Information and Country of Origin on Japanese Olive Oil Consumer Selection," 2011 International Congress, August 30-September 2, 2011, Zurich, Switzerland 114642, European Association of Agricultural Economists.
    20. Chavez, Daniel E. & Palma, Marco A. & Nayga, Rodolfo M. & Mjelde, James W., 2020. "Product availability in discrete choice experiments with private goods," Journal of choice modelling, Elsevier, vol. 36(C).

    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:075:i03. 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.