### Navigation

- index
- modules |
- next |
- previous |
- statsmodels v0.2.0 documentation »
- Robust Linear Models »
- scikits.statsmodels.robust.norms.LeastSquares »

# scikits.statsmodels.robust.norms.LeastSquares.weights

`LeastSquares.``weights`(z)

  The least squares estimator weighting function for the IRLS algorithm.

  The psi function scaled by the input z

  Parameters: | z : array-like 1d array
  Returns: | array : weights(z) = np.ones(z.shape)

### Navigation

- index
- modules |
- next |
- previous |
- statsmodels v0.2.0 documentation »
- Robust Linear Models »
- scikits.statsmodels.robust.norms.LeastSquares »