statsmodels.regression.linear_model.WLS.whiten

WLS.whiten(X)[source]

Whitener for WLS model, multiplies each column by sqrt(self.weights)

Parameters:

X : array-like

Data to be whitened

Returns:

sqrt(weights)*X