6.8.2.1.5. statsmodels.sandbox.stats.contrast_tools.contrast_product

statsmodels.sandbox.stats.contrast_tools.contrast_product(names1, names2, intgroup1=None, intgroup2=None, pairs=False)[source]

build contrast matrices for products of two categorical variables

this is an experimental script and should be converted to a class

Parameters:

names1, names2 : lists of strings

contains the list of level labels for each categorical variable

intgroup1, intgroup2 : ndarrays TODO: this part not tested, finished yet

categorical variable

Notes

This creates a full rank matrix. It does not do all pairwise comparisons, parameterization is using contrast_all_one to get differences with first level.

? does contrast_all_pairs work as a plugin to get all pairs ?