Run archetypes algorithm repeatedly
stepArchetypes(..., k, nrep = 3, method = archetypes, verbose = TRUE)
A list with k
elements and class attribute
stepArchetypes
. Each element is a list of class
repArchetypes
with nrep
elements; only for
internal usage.
Passed to the specific archetype function.
A vector of integers passed in turn to the k
argument of archetypes
.
For each value of k
run
archetypes
nrep
times.
Archetypes function to use, typically
archetypes
,
weightedArchetypes
or
robustArchetypes
,
Show progress during exection.
archetypes
if (FALSE) {
data(skel)
skel2 <- subset(skel, select=-Gender)
as <- stepArchetypes(skel2, k=1:5, verbose=FALSE)
## Residual sum of squares curve:
screeplot(as)
## Select three archetypes and from that the best
## recurrence:
a3 <- bestModel(as[[3]])
}
Run the code above in your browser using DataLab