LongData-class {longitudinalData} | R Documentation |
LongData
is an objet containing the longitudinal
data (the individual trajectories) and some associate value (like time, individual
identifiant,...)
Object LongData
can be created either directly by calling
the fonction longData
or form an existing structure
(data.frame
or matrix
) by using
as.longData
.
id
[character]
: Single identifier
for each of the longData (each individual).time
[numeric]
: Time during which measures were made.varName
[character]
: Name of the variable measured.traj
[array(numeric)]
: Contains
the longitudianl data. Each line corresponds to the trajectory of an
individual. The columns refer to the time during which measures
were made.[list]
: list of additionnal information (see
section Value
in
generateArtificialLongData
for an example).
Object LongData
can be created either directly by calling
the fonction longData
(build from scratch) or
via as.longData
(turning a data.frame
into a LongData
).
id
)time
)varName
)traj
)value
value
.value
.values
.value
.plot(LongData)
plot(LongData,Partition)
Partition
.plotSubGroups(LongData,Partition)
Partition
.selecSupTrajMinSize(LongData,minSize)
minSize
values
(usefull to exclude from the LongData some individual trajectories with to many missing values.)
Christophe Genolini
PSIGIAM: Paris Sud Innovation Group in Adolescent Mental Health
INSERM U669 / Maison de Solenn / Paris
Contact author : <genolini@u-paris10.fr>
Article submited
Overview: longitudinalData-package
Methods: longData
, as.longData
, selectSupTrajMinSize
, imputation
, criterion
Plot: plot(LongData)
,plotSubGroups(LongData)
### building longData mat <- matrix(c(NA,2,3,4,1,6,2,5,1,3,8,10),4) ld <- new("LongData",id=c("I1","I2","I3","I4"),time=c(2,4,8),varName="Age",traj=mat) ### '[' and '[<-' ld["id"] ld["time"]<- c(1,3,9) ld["varName"] ld["traj"] ld["traj"][3,]<-c(2,7,9) (ld) ### Plot plot(ld,type.mean="n",legend=FALSE) ### Only trajectories with at least 3 values selectSupTrajMinSize(ld,3)