5.1.2.1.1.2. statsmodels.sandbox.contrast_old.Contrast.compute_matrix

Contrast.compute_matrix(*args, **kw)[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=self.D=self.formula().

If the design, self.D is already set, then evaldesign can be set to False.