6.8.2.1.3. statsmodels.sandbox.stats.contrast_tools.contrast_diff_mean

statsmodels.sandbox.stats.contrast_tools.contrast_diff_mean(nm)[source]

contrast or restriction matrix for all against mean comparison

Parameters:

nm : int

Returns:

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

contrast matrix for all against mean comparisons