statsmodels.robust.norms.TukeyQuartic.weights#
- TukeyQuartic.weights(z)[source]#
TukeyQuartic weighting function for the IRLS algorithm
The psi function scaled by z.
- Parameters:
- zarray_like
1d array
- Returns:
- weights
ndarray weights(z) = (1 - (z/c)**k)**2 for |z| <= c
weights(z) = 0 for |z| > c
- weights