[Paper Review] logitr: Fast Estimation of Multinomial and Mixed Logit Models with Preference Space and Willingness to Pay Space Utility Parameterizations
This paper introduces the R package logitr, which enables fast maximum likelihood estimation of multinomial and mixed logit models in both preference space and willingness-to-pay (WTP) space parameterizations. It addresses the issue of unreasonable WTP distributions in mixed logit models by supporting direct WTP space estimation, and achieves superior speed through optimized algorithms and a parallelized multi-start optimization loop, outperforming existing packages like mlogit, gmnl, mixl, and apollo.
This paper introduces the logitr R package for fast maximum likelihood estimation of multinomial logit and mixed logit models with unobserved heterogeneity across individuals, which is modeled by allowing parameters to vary randomly over individuals according to a chosen distribution. The package is faster than other similar packages such as mlogit, gmnl, mixl, and apollo, and it supports utility models specified with "preference space" or "willingness to pay (WTP) space" parameterizations, allowing for the direct estimation of marginal WTP. The typical procedure of computing WTP post-estimation using a preference space model can lead to unreasonable distributions of WTP across the population in mixed logit models. The paper provides a discussion of some of the implications of each utility parameterization for WTP estimates. It also highlights some of the design features that enable logitr's performant estimation speed and includes a benchmarking exercise with similar packages. Finally, the paper highlights additional features that are designed specifically for WTP space models, including a consistent user interface for specifying models in either space and a parallelized multi-start optimization loop, which is particularly useful for searching the solution space for different local minima when estimating models with non-convex log-likelihood functions.
Motivation & Objective
- To develop a computationally efficient R package for estimating multinomial and mixed logit models with unobserved heterogeneity.
- To address the problem of unreasonable WTP distributions in mixed logit models when using post-estimation computation from preference space models.
- To support direct estimation in WTP space, enabling more realistic and consistent WTP estimates across the population.
- To provide a streamlined, consistent user interface for switching between preference space and WTP space model specifications.
- To enhance model convergence robustness through a parallelized multi-start optimization loop for non-convex likelihood functions.
Proposed method
- The package uses maximum likelihood estimation with a numerically stable implementation of the log-likelihood function for multinomial and mixed logit models.
- It supports two utility parameterizations: preference space (standard) and WTP space (where WTP is directly modeled as a random variable).
- The WTP space parameterization avoids the Cauchy distribution problem that arises when dividing preference space parameters, especially when price and attribute parameters are both random.
- A parallelized multi-start optimization loop is implemented to improve convergence by exploring multiple starting points and avoiding local minima.
- The package leverages C++-accelerated computation for performance, achieving faster estimation than comparable packages like mlogit, gmnl, mixl, and apollo.
- It includes built-in support for robust standard errors clustered by individual (e.g., obsID) and weighted estimation for survey calibration.
Experimental results
Research questions
- RQ1Does direct estimation in WTP space yield more reasonable and stable distributions of willingness-to-pay compared to post-estimation computation from preference space models?
- RQ2Can a parallelized multi-start optimization strategy improve convergence reliability in non-convex mixed logit models with WTP space parameterization?
- RQ3How does the computational performance of logitr compare to other leading R packages such as mlogit, gmnl, mixl, and apollo in estimating multinomial and mixed logit models?
- RQ4To what extent do WTP estimates differ between preference space and WTP space models when the price parameter is modeled as random?
- RQ5How effective is the package’s user interface in enabling seamless switching between preference space and WTP space model specifications?
Key findings
- logitr achieves faster estimation speeds than mlogit, gmnl, mixl, and apollo, even though mixl uses high-performance C++ compilation.
- When the price parameter is fixed, WTP estimates from preference space and WTP space models are nearly identical, with differences less than 0.00023 in absolute value.
- When the price parameter is modeled as random, WTP estimates from preference space and WTP space models can differ substantially due to the non-convexity and heavy-tailed nature of the ratio distribution.
- The parallelized multi-start optimization loop successfully improves convergence by exploring multiple starting points, reducing the risk of getting stuck in poor local minima.
- The package supports robust standard errors clustered by individual (e.g., obsID), which is essential for valid inference in conjoint survey data with repeated choices.
- Weighted estimation is natively supported, allowing for sample calibration to match target population distributions, as demonstrated with the cars_us dataset from a 2012–2013 U.S. car buyer survey.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.