weight.funs.q {robust} | R Documentation |
These functions compute the weights used by lmRob and its associated methods.
psi.weight(svals, ips = 1, xk = 1.06) rho.weight(svals, ips = 1, xk = 1.06) psp.weight(svals, ips = 1, xk = 1.06) chi.weight(svals, ips = 1, xk = 1.06)
svals |
a numeric vector. |
ips |
choose your weight function: ips = 1 for optimal function, ips = 2 for rescaled bisquare function, and ips = 3 for Huber function. |
xk |
a numeric value specifying the tuning constant. |
See the Theoretical Details section in chapter 2 of Robust.pdf.
a numeric vector containing the weights.