Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

psi_func-class

Class of "Psi Functions" for M-Estimation


Description

The class "psi_func" is used to store psi functions for M-estimation. In particular, an object of the class contains rho(x), its derivative psi(x), the weight function ψ(x)/x, and first derivative of ψ, Dpsi = ψ'(x).

Objects from the Class

Objects can be created by calls of the form new("psi_func", ...), but preferably by psiFunc(...).

Slots

rho:

the rho() function, an object of class "functionX". This is used to formulate the objective function; ρ() can be regarded as generalized negative log-likelihood.

psi:

psi() is the derivative of ρ, psi(x) = d/dx rho(x); also of class "functionX".

wgt:

The weight function ψ(x)/x, of class "functionX".

Dpsi:

the derivative of ψ, Dpsi(x) = psi'(x); of class "functionX".

Dwgt:

the derivative of the weight function, of class "functionX", is generated automatically if psiFunc constructor is used.

tDefs:

named numeric vector of tuning parameter Default values.

Erho:

A function of class "functionXal" for computing E[ρ(X)] when X is standard normal N(0,1).

Epsi2:

A function of class "functionXal" for computing E[ψ^2(X)] when X is standard normal.

EDpsi:

A function of class "functionXal" for computing E[ψ'(X)] when X is standard normal.

name:

Name of psi-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" !)

robustbase

Basic Robust Statistics

v0.93-7
GPL (>= 2)
Authors
Martin Maechler [aut, cre] (<https://orcid.org/0000-0002-8685-9910>), Peter Rousseeuw [ctb] (Qn and Sn), Christophe Croux [ctb] (Qn and Sn), Valentin Todorov [aut] (most robust Cov), Andreas Ruckstuhl [aut] (nlrob, anova, glmrob), Matias Salibian-Barrera [aut] (lmrob orig.), Tobias Verbeke [ctb, fnd] (mc, adjbox), Manuel Koller [aut] (mc, lmrob, psi-func.), Eduardo L. T. Conceicao [aut] (MM-, tau-, CM-, and MTL- nlrob), Maria Anna di Palma [ctb] (initial version of Comedian)
Initial release
2021-01-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.