Compute h(alpha) which is the size of the subsamples to be used for MCD and LTS. Given alpha, n and p, h is an integer, h ~= alpha*n, where the exact formula also depends on p.
For α = 1/2,
h == floor(n+p+1)/2; for the general
case, it's simply
n2 <- (n+p+1) %/% 2; floor(2*n2 - n + 2*(n-n2)*alpha).
h.alpha.n(alpha, n, p)
fraction, numeric (vector) in [0.5, 1], see, e.g.,
integer (valued vector), the sample size.
integer (valued vector), the dimension.
numeric vector of h(α, n,p); when any of the arguments of length greater than one, the usual R arithmetic (recycling) rules are used.
ltsReg which are
defined by h = h(α,n,p) and hence both use
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.