3.11.5.2.1.1.2. statsmodels.stats.contrast.Contrast.compute_matrix

Contrast.compute_matrix()[source]

Construct a contrast matrix C so that

colspan(dot(D, C)) = colspan(dot(D, dot(pinv(D), T)))

where pinv(D) is the generalized inverse of D=design.