wt.Hampel: Hampel's Weight Function

Description Usage Arguments Value

View source: R/robustregression.R

Description

Weight function for Hample's psi, giving w_i = \frac{psi(u)}{u}

Usage

1
wt.Hampel(u, k = 0.901608)

Arguments

u

vector of centered and scaled residuals

k

a tuning constant. the default is 0.901608, which yields an asymptotic relative efficiency under normality of 95 percent. Note that in this package the three parameters a,b,and c commonly utilized are hard coded to give the psi function a slope of -1/3 at the origin. k is multiplied by a,b,c to yield a simpler and more consistent means of tuning the function.

Value

a numeric vector


abnormally-distributed/cvreg documentation built on May 3, 2020, 3:45 p.m.