You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the MultinomialLogitResults class can only provide fitted probabilities for MergedChoiceTables that are generated with sampling of alternatives. This is a bug; there's no reason we can't calculate probabilities for tables that include all the alternatives. Thanks to @msoltadeo for reporting this.
Diagnosis
What's happening is that mergedchoicetable.py#L316 uses the sample size as a count of the number of alternatives, raising an error if the sample size is None. This should be easy to fix.
Workaround
As a temporary workaround, you can edit the table's sample size property after generating it:
It looks like the MultinomialLogitResults class can only provide fitted probabilities for MergedChoiceTables that are generated with sampling of alternatives. This is a bug; there's no reason we can't calculate probabilities for tables that include all the alternatives. Thanks to @msoltadeo for reporting this.
Diagnosis
What's happening is that mergedchoicetable.py#L316 uses the sample size as a count of the number of alternatives, raising an error if the sample size is
None
. This should be easy to fix.Workaround
As a temporary workaround, you can edit the table's sample size property after generating it:
Or you can do it like this, although the table generation may be substantially slower:
The text was updated successfully, but these errors were encountered: