Learn R Programming

kml (version 0.9.2)

clusterizLongData: ~ Constructor: clusterizLongData (or cld) ~

Description

clusterizLongData (or cld in short) is the constructor for ClusterizLongData object.

Usage

clusterizLongData(traj, id, time, varName = "V", trajSizeMin = 1)
cld(traj, id, time, varName = "V", trajSizeMin = 1)

Arguments

traj
[array(numeric)]: contains longitudinal data. Each line is the trajectory of an individual. The columns refer to the time during which measures were made.
id
[character] : single identifier for each individual (i.e. each trajectories). Note that the identifiant are of type character (that allow to deal identifiants like XUK32-612 identifiant that our
time
[numeric]: time during which measures were made.
varName
[character]: name of the variable measured.
trajSizeMin
[numeric]: Trajectories whose values are partially missing can either be excluded by treatment, or included. trajSizeMin sets the minimum number of values that a trajectory must contain not to be excluded. For examp

Value

  • Object of class ClusterizLongData.

Author(s)

Christophe M. 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

Details

clusterizLongData create a ClusterizLongData object and set its slot to the corresponding value. Note that the field clusters can not be initialised through this function since this slot is not suppose be be manipulated by the user (only by kml).

References

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

See Also

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

Examples

Run this code
mat <- matrix(c(1,2,3,1,4,6,1,8,10),3)
(ld1 <- cld(traj=mat,id=c("1","2","3"),time=c(1,2,3),varName="V",trajSizeMin=2))
(ld2 <- clusterizLongData(traj=mat,id=c("A-101","A-102","A-108"),time=c(2,4,8),varName="Age",trajSizeMin=2))

Run the code above in your browser using DataLab