HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Program Files/R/R-4.4.0/library/MASS/tests/cov.mcd.R
library(MASS)
set.seed(123)
N <- 9522
rM <- matrix(rnorm(N*4), N)
cvR <- try(cov.rob(rM, method = "mcd", nsamp = "exact"))
cvR <- try(cov.rob(rM, method = "mcd", nsamp = 1e10))

## Things which failed with a gcc12 mis-compile.

## Extracted from package fpc
xg <- structure(c(4, 5, 6, 7, 8, 8, 7, 6, 5, 8), dim = c(5L, 2L),
                dimnames = list(NULL, c("x", "y")))
cov.mcd(xg)