Learn R Programming

VIM (version 7.3.0)

.apply_weight_fun: Apply a weight function to standardized values

Description

Dispatches to huber_weight or tukey_weight depending on the method argument.

Usage

.apply_weight_fun(u, method = "huber", alpha = NULL)

Value

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

Arguments

u

numeric vector of standardized values

method

weight function to use: "huber" or "tukey", Default: "huber"

alpha

tuning constant. If NULL, defaults to 1.345 for Huber and 4.685 for Tukey.

Author

Matthias Templ