6.8.2.1.2. statsmodels.sandbox.stats.contrast_tools.contrast_allpairs

statsmodels.sandbox.stats.contrast_tools.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