# NOT RUN {
library(Anthropometry)
# Load data:
data(mtcars)
data <- mtcars
n <- nrow(data)
# Arguments for the archetype/archetypoid algorithm:
# Number of archetypoids:
k <- 3
numRep <- 2
huge <- 200
# Size of the random sample of observations:
m <- 10
# Number of samples:
N <- floor(1 + (n - m)/(m - k))
N
prob <- 0.75
# ADALARA algorithm:
preproc <- preprocessing(data, stand = TRUE, percAccomm = 1)
data1 <- as.data.frame(preproc$data)
res_adalara <- adalara_no_paral(data1, 1, N, m, k,
numRep, huge, prob, "ada_rob", FALSE, TRUE,
method = "adjbox", frame = FALSE)
# Examine the results:
res_adalara
res_adalara1 <- adalara_no_paral(data1, 1, N, m, k,
numRep, huge, prob, "ada_rob", FALSE, TRUE,
vect_tol = c(0.95, 0.9, 0.85),
alpha = 0.05, outl_degree = c("outl_strong", "outl_semi_strong",
"outl_moderate"),
method = "toler", frame = FALSE)
res_adalara1
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab