estLocScale {cellWise} | R Documentation |
Estimate robust location and scale
Description
Estimate a robust location estimate and scale estimate of every column in X
.
Usage
estLocScale(X, type = "wrap", precScale = 1e-12,
center = TRUE, alpha = 0.5, nLocScale = 25000, silent = FALSE)
Arguments
X |
The input data. It must be an |
type |
The type of estimators used. One of:
Defaults to "wrap". |
precScale |
The precision scale used throughout the algorithm. Defaults to |
center |
Whether or not the data has to be centered before calculating the scale. Not in use for |
alpha |
The value of |
nLocScale |
If |
silent |
Whether or not a warning message should be printed when very small scales are found. Defauts to |
Value
A list with components:
loc
A vector with the estimated locations.scale
A vector with the estimated scales.
Author(s)
Raymaekers, J. and Rousseeuw P.J.
References
Raymaekers, J., Rousseeuw P.J. (2019). Fast robust correlation for high dimensional data. Technometrics, 63(2), 184-198. (link to open access pdf)
See Also
Examples
library(MASS)
set.seed(12345)
n = 100; d = 10
X = mvrnorm(n, rep(0, 10), diag(10))
locScale = estLocScale(X)
# For more examples, we refer to the vignette:
## Not run:
vignette("wrap_examples")
## End(Not run)