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.
The Fisher consistency expectations (Erho, Epsi2,
EDpsi) are computed by numerical integration against the
standard normal.
psi_func_rcpp object usable in rho.e, rho.b.
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.