statsmodels.robust.norms.LeastSquares.weights#
- LeastSquares.weights(z)[source]#
The least squares estimator weighting function for the IRLS algorithm
The psi function scaled by the input z.
\[w(z) = 1\]- Parameters:
- zarray_like
1d array
- Returns:
- weights
ndarray The value of the weighting function.
- weights