psiFunc {robustbase} | R Documentation |
psiFunc(..)
is a convenience interface to
new("psi_func",..)
, i.e. for constructing objects of class
"psi_func"
.
psiFunc(rho, psi, wgt, Dpsi, Erho = NULL, Epsi2 = NULL, EDpsi = NULL, ...)
rho, psi, wgt, Dpsi |
each a |
Erho, Epsi2, EDpsi |
see |
... |
potential further arguments for specifying tuning parameter names and defaults. |
Martin Maechler
psi_func-class
for the class description.
## classical {trivial, not interesting}: F1 <- function(x) rep.int(1, length(x)) cPsi <- psiFunc(rho = function(x) x^2 / 2, psi = function(x) x, wgt = F1, Dpsi = F1, Erho = function(x) rep.int(1/2, length(x)), Epsi2 = F1, EDpsi = F1)