Learn R Programming

VIM (version 7.3.0)

tukey_weight: Tukey bisquare weight function

Description

Computes Tukey bisquare weights for standardized values. Returns (1 - (u/k)^2)^2 for values within the tuning constant and 0 for values outside.

Usage

tukey_weight(u, k = 4.685)

Value

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

Arguments

u

numeric vector of standardized values

k

tuning constant, Default: 4.685

Author

Matthias Templ