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
42 stars 15 forks source link

Panel data #20

Closed jhelvy closed 3 years ago

jhelvy commented 3 years ago

This PR closes #11 by adding support for proper panel log-likelihood calculations, implemented by specifying the panelID argument in the logitr() function. I also changed the argument name from cluster to clusterID to be more consistent with the other ID argument names. Finally, the argument alpha in the prediction functions was changed to ci as specifying a confidence interval is more intuitive than alpha (e.g. a 95% CI is just ci = 0.95, but for alpha it is alpha = 0.025).