trunc_mean | R Documentation |
Computes the element-wise truncated mean estimator
trunc_mean(x, tau, ...)
x |
A |
tau |
A |
... |
Additional arguments. |
A numeric
scalar corresponding to the truncated mean estimator.
Haotian Xu
set.seed(123)
X = rt(100, 3)
mean(X)
trunc_mean(X, 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.