jhelvy / logitr

Fast estimation of multinomial (MNL) and mixed logit (MXL) models in R with "Preference" space or "Willingness-to-pay" (WTP) space utility parameterizations in R
https://jhelvy.github.io/logitr/
Other
43 stars 15 forks source link

Allow simulateShares() to make predictions on multiple alternatives #3

Closed jhelvy closed 3 years ago

jhelvy commented 3 years ago

Right now, simulateShares() takes a data frame defining a single choice scenario for which to predict shares, but it could pretty easily be extended to take a data frame defining multiple sets of alternatives. That could make it much easier for users to predict a variety of scenarios all at once without needing to run a loop.