Learn R Programming

VIM (version 7.3.0)

huber_weight: Huber weight function

Description

Computes Huber weights for standardized values. Returns 1 for values within the tuning constant and k / abs(u) for values outside.

Usage

huber_weight(u, k = 1.345)

Value

numeric vector of weights in \([0, 1]\)

Arguments

u

numeric vector of standardized values

k

tuning constant, Default: 1.345

Author

Matthias Templ