R/cellwise_utils.R
cellWeightsFromResiduals.RdGiven a vector of residuals and a robust scale estimate, standardize and apply a robust weight function. This is used inside the IRWLS loop to compute psi-weights from the current fit residuals.
cellWeightsFromResiduals(residuals, sigma, method = "huber", alpha = NULL)numeric n-vector of weights in \([0, 1]\)