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:whitened – sqrt(weights)*X
Return type:array-like