5.4.2.1.1.3. statsmodels.sandbox.formula.Factor.main_effect

Factor.main_effect(reference=None)[source]

Return the ‘main effect’ columns of a factor, choosing an optional reference key.

The reference key can be one of the keys of the Factor, or an integer, representing which column to remove. It defaults to 0.