5.4.1.2. statsmodels.sandbox.formula.isnested

statsmodels.sandbox.formula.isnested(A, B, namespace=None)[source]

Is factor B nested within factor A or vice versa: a very crude test which depends on the namespace.

If they are nested, returns (True, F) where F is the finest level of the relationship. Otherwise, returns (False, None)