stepArchetypes {archetypes}R Documentation

Runs archetypes algorithm repeatedly.

Description

Runs archetypes algorithm repeatedly.

Usage

stepArchetypes(..., k, nrep=3, verbose=TRUE)

Arguments

... Passed to archetypes function.
k A vector of integers passed in turn to the k argument of archetypes.
nrep For each value of k run archetypes nrep times.
verbose Show progress during exection.

Value

A list with k elements and class attribute stepArchetypes. Each element is a list of class repArchetypes with nrep elements; only for internal usage.

Note

Please see the vignette for a detailed explanation!

See Also

atypes, ntypes, rss, adata, alphas, ahistory, nhistory

Examples

## Not run: 
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]])
## End(Not run)

[Package archetypes version 0.1 Index]