Multinomial Logit Models
Overview
Maximum likelihood estimation of random utility discrete choice models. The software is described in Croissant (2020) doi:10.18637/jss.v095.i11 and the underlying methods in Train (2009) doi:10.1017/CBO9780511805271.
- the msumarry tables are rendered in markdown
- functions preds and slps are introduced to compute the predictions, the slopes and their standard deviations
- micsr::gaze is now re-exported
- a new param argument is introduced for mlogit; it should be a vector of coefficients and, if not null, the fitted probabilities are returned
- dependence on R (>= 3.5.0)
- there where small differences between the .Rout and .Rout.save files, the later have been updated
- the first vignette is renamed 1. Introduction
- the estimate argument of mlogit is now operational : if FALSE, the model frame is returned
Show all changes in 2.0-0Hide the rest of the changes in 2.0-0
- scoretest.mlogit now unables to test models with different covariates sets
- the formula element of mlogit objects is replaced by a term element FO FIX scoretest.default
- the vcov method is now inherited from micsr
- a value element is added to the result
- the logLik element is now a named numeric (model, saturated and null)
- the numerical hessian is now computed using numDeriv when the analytical hessian is not provided if hessian = TRUE
- a df.residual element is added to the result, the df.residual method is removed
- a bug in residuals.mlogit is fixed, probabilities is used instead of fitted
- mlogit doesn't depends on dfidx anymore, dfidx, idx and idx_name are re-exported
- in logsum, bug fix, the names of the indexes used to be alt and chid
- in the vignette, dfidx now use tibbles instead of ordinary data frames
- LazyData is now TRUE
- the dependence on MASS and zoo is removed
- the index function (methods for the zoo function), already deprecated is now suppressed
- roxygen fixes (names.rpar and print.est.stat are now exported, "_PACKAGE" is added in the man page of the package
- in hmftest, class(z) == "a" replaced by inherits(z, "a")
- fixed web adress for JAE data archive, Train's website and Fox's book
- enhanced vignettes, which now are quarto files
- the description of the values of rpar is fixed in the mlogit man page thanks to Martin Eckhoff Andresen
- bug fixed in mlogit (the to.omit variable could be NULL which caused a bug) thanks to Matt Woeran
- update of the Rout.save files
From NEWS.md in the release
Install
Health
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘three.tests.Rd’ \arguments should not be documented without \usage.
- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 1 NOTE2026-07-11
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-07
- NOTE12 OK, 1 NOTE2026-06-03
- OK14 OK2026-03-10
Documentation
- Help pages
- 33 (2 internal)includes a package overview page
- Examples that run
- 100%5 run in a plain check
- Exported functions with examples
- 17%
- Documented parameters
- 95%
- Return-value docs
- 83%
- Help pages citing references
- 39% with a bibliography file
- 2. Data management, model description and testing HTML
- 3. Random utility model and the multinomial logit model HTML
- 4. Logit models relaxing the iid hypothesis HTML
- 5. The random parameters (or mixed) logit model HTML
- 6. The multinomial probit model HTML
- 7. Miscellaneous models HTML
- Exercise 1: Multinomial logit model HTML
- Exercise 2: Nested logit model HTML
- Exercise 3: Mixed logit model HTML
- Exercise 4: Multinomial probit HTML
Show 1 moreHide 1 vignette
- mlogit HTML
Downloads
Dependencies
Installing mlogit adds 12 packages (6 with compiled code, 7.1 MB of source tarballs). Heaviest: Rcpp 1.8 MB, sandwich 1.4 MB, micsr 1.2 MB.
Show all 34 packagesHide all 34 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 2.0-0Latest2026-06-02 · current release · diff ↗ ·
removed 2 exports
index, model.response.mlogitadded 6 exports
dfidx, gaze, idx, idx_name, preds, slps - RR 4.6.0 released · 2026-04-24
- 1.1-32025-07-12 · diff ↗
- 1.1-22025-04-28 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.1-12020-10-02 · diff ↗
- 1.1-0
- RR 4.0.0 released · 2020-04-24
- 1.0-3.12020-03-12 · diff ↗
- unarchivedReturned to CRAN2020-03-07
- 1.0-32020-03-07 · diff ↗
- orphanedOrphaned by its maintainer2020-02-16there was no response to repeated requests
Show 38 earlier eventsHide 38 earlier events
- 1.0-2.12020-02-16 · diff ↗
- 1.0-22019-12-09 · diff ↗
- 1.0-12019-07-22 · diff ↗
- 1.0-02019-07-21 · diff ↗
- 0.4-22019-06-03 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.4-12019-02-01 · diff ↗
- 0.4-0
- RR 3.5.0 released · 2018-04-23
- 0.3-0
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 0.2-4
- RR 3.0.0 released · 2013-04-03
- 0.2-32012-12-07 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 0.2-22011-11-23 · diff ↗
- RR 2.14.0 released · 2011-10-31
- RR 2.13.0 released · 2011-04-13
- 0.2-12011-02-06 · diff ↗
- 0.2-0
- RR 2.12.0 released · 2010-10-15
- 0.1-82010-07-24 · diff ↗
- RR 2.11.0 released · 2010-04-22
- 0.1-72010-04-18 · diff ↗
- 0.1-6
- 0.1-52010-03-25 · diff ↗ ·
added 9 exports
cov.mlogit, cor.mlogit, rpar, med, rg, stdev, qrpar, prpar, drpar - 0.1-42010-01-27 · diff ↗
- 0.1-3
- RR 2.10.0 released · 2009-10-26
- RR 2.9.0 released · 2009-04-17
- 0.1-22008-12-19 · diff ↗
- RR 2.8.0 released · 2008-10-20
- 0.1-1
- 0.1-02008-05-16
- RR 2.7.0 released · 2008-04-22
Package metadata
- First published
- 2008-05-16
- Total releases
- 29 / 18 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 406 KB / 15 files
- Download size
- 720 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("mlogit")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v095.i11.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.