6.8.5.2.6. statsmodels.sandbox.stats.multicomp.contrast_allpairs

statsmodels.sandbox.stats.multicomp.contrast_allpairs(nm)[source]

contrast or restriction matrix for all pairs of nm variables

Parameters:

nm : int

Returns:

contr : ndarray, 2d, (nm*(nm-1)/2, nm)

contrast matrix for all pairwise comparisons