Learn R Programming

archetypes (version 2.0-2)

stepArchetypes: Runs archetypes algorithm repeatedly.

Description

Runs archetypes algorithm repeatedly.

Usage

stepArchetypes(..., k, nrep=3, method=archetypes, verbose=TRUE)
## S3 method for class 'stepArchetypes':
[(x, i)
## S3 method for class 'stepArchetypes':
summary(object, ...)
## S3 method for class 'stepArchetypes':
nparameters(object, ...)
## S3 method for class 'stepArchetypes':
rss(object, ...)
## S3 method for class 'stepArchetypes':
bestModel(object, ...)

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.
method
Archetypes function to use, typically archetypes, weightedArchetypes or robustArchetypes
verbose
Show progress during exection.
x
A stepArchetypes object.
i
The indizes to extract.
object
A stepArchetypes object.

Value

  • stepArchetypes: A list with k elements and class attribute stepArchetypes. Each element is a list of class repArchetypes with nrep elements; only for internal usage. [.stepArchetypes: A stepArchetypes object containing only the parts defined in i. summary.stepArchetypes: Undefined. nparameters.stepArchetypes: Vector of numbers of archetypes. rss.stepArchetypes: A vector of residual sum of squares. bestModel.stepArchetypes: A list of length k of best models.

Details

[.stepArchetypes: An extraction on a stepArchetypes object returns again a stepArchetypes object.

See Also

archetypes

Examples

Run this code
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