Last chance! 50% off unlimited learning
Sale ends in
This function estimates mean of multivariate data using the Huber's loss. The tuning parameter is chosen by cross validation.
farm.mean(X, cv = TRUE, tau = 2, verbose = FALSE)
a n x p data matrix with each row being a sample.
a boolean, specifying whether or not to run cross-validation for the tuning parameter. Default is TRUE.
>0
, multiplier for the tuning parameter for Huber loss function. Default is 2. Only used if cv
is FALSE. See details.
a boolean specifying whether to print runtime updates to the console. Default is TRUE.
A list with the following items
the mean vector
The tuning parameter = tau * sigma * optimal rate
where optimal rate
is the optimal rate for the tuning parameter. For details, see Fan et al.(2017). sigma
is the standard deviation of the data.
Huber, P.J. (1964). "Robust Estimation of a Location Parameter." The Annals of Mathematical Statistics, 35, 73<U+2013>101.
Fan, J., Ke, Y., Sun, Q. and Zhou, W-X. (2017). "FARM-Test: Factor-Adjusted Robust Multiple Testing with False Discovery Control", https://arxiv.org/abs/1711.05386.
Zhou, W-X., Bose, K., Fan, J. and Liu, H. (2017). "A New Perspective on Robust M-Estimation: Finite Sample Theory and Applications to Dependence-Adjusted Multiple Testing," Annals of Statistics, to appear, https://arxiv.org/abs/1711.05381.
# NOT RUN {
set.seed(100)
p = 20
n = 10
X = matrix(rnorm( p*n, 0,1), nrow = n)
muhat = farm.mean(X)
# }
Run the code above in your browser using DataLab