Solving the estimating equations is a weighted least-squares problem, minimizing. The weights,
however, depend upon the residuals, the residuals depend upon the estimated coefficients, and the estimated coefficients depend upon the weights. An iterative solution (called iteratively reweighted least-squares, IRLS) is therefore required: