View source: R/general_functions.R
huber_mean | R Documentation |
Computes the element-wise adaptive Huber mean estimator.
huber_mean(x, tau)
x |
A |
tau |
A |
A numeric
scalar corresponding to the adaptive Huber mean estimator.
Haotian Xu
set.seed(123) y = rnorm(100) mean(y) huber_mean(y, 1.345)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.