statsmodels.robust.norms.LeastSquares.weights

method

LeastSquares.weights(z)[source]

The least squares estimator weighting function for the IRLS algorithm.

The psi function scaled by the input z

Parameters
zarray-like

1d array

Returns
weightsarray

weights(z) = np.ones(z.shape)