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

accessing intercept value #23

Closed saurabac closed 3 years ago

saurabac commented 3 years ago

Hi John, this is a great package! Much faster and stable compared to the other R packages for mixed logits. Is it possible to extract the intercept for the estimated model (or a method to specify it as a parameter)?

jhelvy commented 3 years ago

Thanks! It's still a work in progress, but it's starting to get more stable now. I'm currently improving the prediction functions, which will eventually just be a predict() method for logitr class objects (models estimated using logitr).

Anyway, unless I'm misunderstanding your question, you should not have an intercept in the model. For categorical variables, one level should be set as the reference level (see here for example).