View source: R/redescendingPsi.R
| makeBisquarePsi | R Documentation |
Construct a redescending Tukey bisquare psi function.
makeBisquarePsi(c = 4.685)
c |
tuning cutoff. The default |
Returns a psi_func_rcpp object whose psi, rho, weight and
derivative slots implement Tukey's bisquare (biweight) function
\psi(x) = x (1 - (x/c)^2)^2 \quad \text{for } |x| \le c,\quad 0 \text{ otherwise}
suitable for use as rho.e (or rho.b, rho.sigma.e,
rho.sigma.b) in rlmer.
Since robustlmm 3.5.0 the psi, rho, weight and derivative evaluations
delegate to robustbase's compiled bisquare family
(Mpsi, Mwgt,
Mchi), so they match
lmrob exactly; the returned values are
identical (to numerical tolerance) to the previous hand-coded
implementation. makeBisquarePsi is the scalar-cutoff special
case of the general makeRobustbasePsi.
The Fisher consistency expectations (Erho, Epsi2,
EDpsi) are computed by numerical integration against the
standard normal.
The bisquare redescends comparatively fast; for a redescending fit the
"lqq" psi (lqqPsi), the recommended redescender of
robustbase's lmrob.control(setting = "KS2014"), is generally
preferable (Koller and Stahel 2011).
psi_func_rcpp object usable in rho.e, rho.b.
Koller, M. and Stahel, W. A. (2011) Sharpening Wald-type inference in robust regression for small samples. Computational Statistics & Data Analysis 55(8), 2504–2515.
makeRobustbasePsi, lqqPsi.
pf <- bisquarePsi
pf@psi(c(-6, -3, 0, 3, 6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.