Partition-class {longitudinalData}R Documentation

~ Class: Partition ~

Description

An object of class Partition is a clusterization of LongData in subgroups.

Objects from the Class

Objects are mainly intend to be created by some clusterization methods (like k-means, fuzzy k-means, mixture modeling, latent class analysis,...)

Slots

nbClusters
[numeric]: number of groups, between 1 and 52
clusters
[vector(factor)]: vector containing the affectation groups of each individual. The 26 first groups are in upper-case letters, the 26 next are in lower case letters.

validation rules

A class Partition object must follow some rules to be valid:

Construction

Class Partition objects are mainly constructed by some clusterization methods (like k-means, fuzzy k-means, mixture modeling, latent class analysis,...) Neverdeless, it is also possible to construct them from scratch using the fonction partition.

Get [

Object["nbClusters"]
[numeric]: Gets the number of clusters (the value of the slot nbClusters)
Object["clusters"]
[vector(factor)]: Gets the cluster of each individual (the value of the slot clusters)
Object["clustersAsInteger"]
[vector(integer)]: Gets the cluster of each individual and turn them into integer

Setteur [<-

Object["nbClusters"]<-value
[numeric]: Sets the number of clusters to value.
Object["clusters"]<-value
[vector(factor)]: Sets the cluster of each individual.

Author(s)

Christophe Genolini
PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health
INSERM U669 / Maison de Solenn / Paris

Contact author : <genolini@u-paris10.fr>

References

Article submited

See Also

Overview: longitudinalData-package
Classes: LongData
Methods: partition

Examples

### Building Partition
part <- partition(rep(c("A","B","C"),time=10),nbClusters=4)

### '[' and '[<-'
part["clusters"]
part["nbClusters"]

part["nbClusters"]<-3
(part)

[Package longitudinalData version 0.6 Index]