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: