pylogit icon indicating copy to clipboard operation
pylogit copied to clipboard

Weighting

Open jlaz opened this issue 3 years ago • 1 comments

Hey @timothyb0912, It seems that functionality for weighing (particularly for mixed logit) is almost there. I'm wondering if there's a workaround to pass weights to the estimator or if you'd be open to guiding me through the implementation?

It seems like the weights parameter is needed here: https://github.com/timothyb0912/pylogit/blob/cffc9c523b5368966ef2481c7dc30f0a5d296de8/src/pylogit/mixed_logit.py#L592

jlaz avatar Mar 19 '21 20:03 jlaz

Hey @jlaz thanks for brining this up.

I haven't looked at the mixed_logit code in a long time, but because weighting isn't already implemented, my initial instinct is to assume there was something that at the time seemed non-trivial. If so, there wouldn't be an easy workaround. Who knows though I could be wrong.

Guiding you through the implementation sounds like the most fun route to me. Thanks for suggesting and being open to that.

When do you need this completed by? Is there a strict deadline?

timothyb0912 avatar Mar 22 '21 05:03 timothyb0912