longDataTo3d {longitudinalData} | R Documentation |
~ Function: longDataTo3d ~
Description
Build a object LongData3d
from an object
LongData
. The resulting object has a single
variable-trajectory stored in a array.
Usage
longDataTo3d(xLongData)
Arguments
xLongData |
|
Details
Build a object LongData3d
from an object
LongData
. The resulting object has a single
variable-trajectory stored in a array.
Value
An object of class LongData3d
.
Author
Christophe Genolini
1. UMR U1027, INSERM, Université Paul Sabatier / Toulouse III / France
2. CeRSME, EA 2931, UFR STAPS, Université de Paris Ouest-Nanterre-La Défense / Nanterre / France
References
[1] C. Genolini and B. Falissard
"KmL: k-means for longitudinal data"
Computational Statistics, vol 25(2), pp 317-328, 2010
[2] C. Genolini and B. Falissard
"KmL: A package to cluster longitudinal data"
Computer Methods and Programs in Biomedicine, 104, pp e112-121, 2011
See Also
Examples
### Creation of single variable-trajectory
mat <- matrix(c(1,NA,3,2,3,6,1,8,10,1,NA,1,2,NA,3,2,3,2),6,3)
(ldSingle <- longData(mat))
### Extension to joint trajectories
(ldHyp <- longDataTo3d(ldSingle))