2logitr: Preference and WTP Space Logit Models in R
utility model, which can be parameterized as a function of a product’s observed attributes and
a random variable representing the portion of utility unobservable to the modeler. These models
produce estimates of the marginal utility for changes in each attribute relative to one another.
In many applications, modelers are interested in estimating marginal “willingness to pay” (WTP)
for changes in product attributes. The typical procedure to obtain these estimates is to divide the
estimated parameters of a “preference space” utility model by the negative of the price parameter.
Despite this common practice, it can yield unreasonable distributions of WTP across the population
in heterogeneous random parameter (or “mixed logit”) models (Train and Weeks 2005;Sonnier,
Ainslie, and Otter 2007;Helveston, Feit, and Michalek 2018). For example, if the parameters for
the price attribute and another non-price attribute are both assumed to be normally distributed
across the population, then the resulting WTP estimate follows a Cauchy distribution, implying
that WTP has an infinite variance across the population.
An alternative approach is to re-parameterize the utility model into the “WTP space” prior to
estimation. Estimating a WTP space model allows the modeler to directly specify assumptions
of how WTP is distributed, which has been found to yield more reasonable estimates of WTP
(Train and Weeks 2005;Sonnier et al. 2007;Daly, Hess, and Train 2012). WTP space models have
also been found to be more consistent with respondent’s true underlying preferences (Crastesa,
Beaumaisb, Mahieud, Martinez-Camblore, and Scarpa 2014). Finally, since WTP estimates are
independent of error scaling, they can be conveniently compared across different models estimated
on different data.
Several statistical packages support the estimation of multinomial and mixed logit models with
WTP space utility parameterizations. One of the most common approaches involves an adaptation
of the generalized multinomial logit (GMNL) model (Fiebig, Keane, Louviere, and Wasi 2010) to fit
WTP space models via an implementation of the scaled multinomial logit (SMNL) model, though
this requires that the price parameter estimate and standard error be calculated post-estimation.
Estimation of WTP space models via GMNL has been implemented in R with the gmnl package
(Sarrias, Daziano et al. 2017) and in STATA with the gmnl package (Gu, Hole, and Knox 2013).
WTP space models can also be estimated using the apollo (Hess and Palma 2019) and mixl (Molloy,
Becker, Schmid, and Axhausen 2021) R packages as they allow the user to hand-specify any valid
utility model. Finally, Professor Arne Rise Hole developed two STATA packages that share a
common syntax for estimating mixed logit models in the preference space (mixlogit) and WTP
space (mixlogitwtp) (Hole 2007). Many other packages exist for estimating a wider variety of logit
models, but they are limited to preference space models. Of these, package mlogit (Croissant 2020)
is perhaps the most complete and widely used for estimating multinomial logit and mixed logit
models in R via maximum likelihood estimation.
The logitr package is designed specifically to support the estimation of multinomial logit and mixed
logit models models with either preference space or WTP space utility parameterizations. While
logitr is less general in scope compared to more flexible packages like mixl and apollo, it offers
other functionality that is particularly useful for estimating WTP space models and conveniently
switching between preference and WTP space models. For example, given their non-linear utility
specification, WTP space models often diverge during estimation and can be sensitive to starting
parameters. To address this, the package includes a parallelized multi-start optimization loop
to search for different local minima from different random starting points when minimizing the
negative log-likelihood. The user interface is also more streamlined and simplified for estimating
models in either space.
Package logitr is also computationally efficient and faster than other similar packages, including the