REF: More general checking of MRO for Multinomial.

Looking at re-using some multinomial code for ordinal models (though maybe not super efficient memory-wise). Relax this check.
On Mon, Dec 15, 2014 at 3:46 PM, Josef Perktold <notifications@github.com>
wrote:
>
> In statsmodels/discrete/discrete_model.py
> <https://github.com/statsmodels/statsmodels/pull/2135#discussion-diff-21855169>
> :
>
> > @@ -399,7 +399,7 @@ class BinaryModel(DiscreteModel):
> >
> >      def __init__(self, endog, exog, **kwargs):
> >          super(BinaryModel, self).__init__(endog, exog, **kwargs)
> > -        if (self.__class__.__name__ != 'MNLogit' and
> > +        if (MultinomialModel not in self.__class__.mro() and
>
> That looks weird to me. Can you not check isinstance or issubclass?
>
Yes, either would make more sense.


> But I would like to replace type checks by flags or checking properties,
> instead of checking the type of instances and classes
>

Why?

>