dot-apply_weight_fun: Apply a weight function to standardized values

.apply_weight_funR Documentation

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)

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.

Value

numeric vector of weights in [0, 1]

Author(s)

Matthias Templ


VIM documentation built on Sept. 2, 2026, 5:07 p.m.