psi: Psi function used in hbrfit

Description Usage Arguments Author(s) References Examples

View source: R/psi.R

Description

Psi function used in the calculation of the weights for HBR estimates.

Usage

1
psi(x)

Arguments

x

n x 1 vector

Author(s)

Jeff Terpstra, Joe McKean, John Kloke [email protected]

References

Chang, W. McKean, J.W., Naranjo, J.D., and Sheather, S.J. (1999), High breakdown rank-based regression, Journal of the American Statistical Association, 94, 205-219.

Hettmansperger, T.P. and McKean J.W. (2011), Robust Nonparametric Statistical Methods, 2nd ed., New York: Chapman-Hall.

Terpstra, J. and McKean, J.W. (2005), Rank-based analyses of linear models using R, Journal of Statistical Software, 14(7).

Examples

1
2
3
4
5
6
7
## The function is currently defined as
function (x) 
{
    x[x == -Inf] = -100
    x[x == Inf] = 100
    -1 * (x <= -1) + x * (-1 < x & x < 1) + 1 * (x >= 1)
  }

kloke/hbrfit documentation built on May 18, 2017, 9:41 p.m.