Learn R Programming

kml (version 0.9.2)

ClusterizLongData-class: ~ Class: ClusterizLongData ~

Description

ClusterizLongData is an objet containing trajectories and associated clusterizations.

Arguments

Objects from the Class

kml is an algorithm that builds an set of Clusterization from longitudinal data. ClusterizLongData is the object contaning the original longitudinal data and all the Clusterization that kml finds. When created, a class ClusterizLongData object simply contains initial data (the trajectories). After the execution of kml, it contains the original data and the Clusterization which has just been calculated by kml. Please note that if kml is executed several times, every new Clusterization are added to the original ones, no pre-existing Clusterization is erased.

Construction

Class ClusterizLongData objects can be constructed via function cld (build from scratch), via gald (generation of artificial longitudinal data) or via as.cld (turning a data.frame into a ClusterizLongData).

Author(s)

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

English translation

Rapha�l Ricaud Laboratoire "Sport & Culture" / "Sports & Culture" Laboratory University of Paris 10 / Nanterre

References

Article submited Web site: http://christophe.genolini.free.fr/kml

See Also

Overview: kml-package Classes : Clusterization, ArtificialLongData Methods : clusterizLongData, kml, choice, as.clusterizLongData Plot : plot: overview, plot(ClusterizLongData), plot(Calinski), plotSubGroups(ClusterizLongData), plotAll(ClusterizLongData)

Examples

Run this code
showClass("ClusterizLongData")
mat <- matrix(c(1,2,3,1,4,6,1,8,10),3)
ld <- new("ClusterizLongData",id=c("1","2","3"),time=c(2,4,8),varName="Age",traj=mat,trajSizeMin=2)
ld["id"]
ld["time"]<- c(1,3,9)
ld["varName"]
ld["traj"]
ld["traj",3]<-c(2,7,9)
(ld)

Run the code above in your browser using DataLab