psi_func-class {robustbase} | R Documentation |
Class of "Psi Functions" for M-Estimation
Description
The class "psi_func"
is used to store
functions for M-estimation. In particular, an object of the class
contains
, its derivative
, the weight function
, and
first derivative of
,
Dpsi =
.
Objects from the Class
Objects can be created by calls of the form new("psi_func", ...)
,
but preferably by psiFunc(...)
.
Slots
rho
:the
function, an object of class
"functionX"
. This is used to formulate the objective function;can be regarded as generalized negative log-likelihood.
psi
:is the derivative of
,
; also of class
"functionX"
.wgt
:The weight function
, of class
"functionX"
.Dpsi
:the derivative of
,
; of class
"functionX"
.Dwgt
:the derivative of the weight function, of class
"functionX"
, is generated automatically ifpsiFunc
constructor is used.tDefs
:named numeric vector of tuning parameter Default values.
Erho
:A function of class
"functionXal"
for computingwhen
is standard normal
.
Epsi2
:A function of class
"functionXal"
for computingwhen
is standard normal.
EDpsi
:A function of class
"functionXal"
for computingwhen
is standard normal.
name
:Name of
-function used for printing.
xtras
:Potentially further information.
Methods
Currently, only chgDefaults()
, plot()
and show()
.
Author(s)
Martin Maechler
See Also
Examples
str(huberPsi, give.attr = FALSE)
plot(hampelPsi)# calling the plot method (nicely showing "all" !)